aboutsummaryrefslogtreecommitdiff
path: root/subsonic-site/src/main/webapp/banner.jsp
blob: bf371d93918f800070efd24def00d49b2806f4ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<script type="text/javascript" language="javascript">

    var currentSlide = 0;
    var numberSlides = 0;

    function slideTo(slideNumber, manual) {
        currentSlide = slideNumber;
        if (currentSlide > numberSlides) {
            currentSlide = 0;
        } else if (currentSlide < 0) {
            currentSlide = numberSlides;
        }
        var slidePosition = currentSlide * 900;

        var dur = (currentSlide == 0 || manual) ? 0 : 1000;
        $('#bannercontent').animate({left: '-'+slidePosition+'px'},{duration:dur});
        if (!manual) {
            setTimeout(function() {slideTo(currentSlide + 1, false);}, 10000);
        }
    }

    function prevSlide() {
        slideTo(currentSlide - 1, true);
    }

    function nextSlide() {
        slideTo(currentSlide + 1, true);
    }

    $(document).ready(function() {
        numberSlides = $('#bannercontent div.slide').length - 1;
        slideTo(0, false);
    });

</script>

<hr/>
<div id="banner-full">

    <a id="slide-prev" href="javascript:prevSlide();"></a>
    <a id="slide-next" href="javascript:nextSlide();"></a>

    <div id="bannercontent">
        <div class="slide1 slide">
            <div class="slidecontent">
                <img src="inc/img/banner/banner-01.jpg" alt="" class="screenshot"/>

                <div class="title">
                    <div class="large">The soundtrack of your life</div>
                    <div class="small">Non-stop music and video streaming.</div>
                </div>
            </div>
        </div>
        <div class="slide2 slide">
            <div class="slidecontent">
                <img src="inc/img/banner/apps.png" alt="" class="screenshot"/>

                <div class="title">
                    <div class="large">Don't leave home without it</div>
                    <div class="small"><a href="apps.jsp">Apps</a> available for Android, iPhone and Windows&nbsp;Phone&nbsp;7.</div>
                </div>
            </div>
        </div>

        <div class="slide3 slide">
            <div class="slidecontent">
                <img src="inc/img/banner/screenshot.png" alt="" class="screenshot"/>

                <div class="title">
                    <div class="large">The most complete personal streaming system</div>
                    <div class="small">Subsonic comes packed with features.</div>
                </div>
                <div class="text">
                    Podcast receiver, jukebox mode, on-the-fly downsampling and conversion,
                    multiple frontends, highly configurable, full support for tags, lyrics and album art, open API
                    and <a href="features.jsp">much more</a>.
                </div>
            </div>
        </div>
        <div class="slide4 slide">
            <div class="slidecontent">
                <img src="inc/img/banner/video.png" alt="" class="screenshot"/>

                <div class="title">
                    <div class="large">New in Subsonic 4.3</div>
                    <div class="small">Stream all your movies too!</div>
                    <img src="inc/img/banner/android-video.png" alt="" style="margin-top:20px;margin-left:90px;"/>
                </div>
            </div>
        </div>
        <div class="slide5 slide">
            <div class="slidecontent">
                <img src="inc/img/banner/car.png" alt="" class="screenshot"/>

                <div class="title">
                    <div class="large">No strings attached</div>
                    <div class="small">Relax to your favourite tunes no matter where you are.</div>
                </div>
            </div>
        </div>
    </div>
</div>
<hr/>