123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- <html>
- <head>
- <title>zuck.js</title>
- <link rel="icon" href="ICON.png">
- <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0" />
- <!-- demo styles -->
- <link rel="stylesheet" href="demo/style.css">
- <!-- lib styles -->
- <link rel="stylesheet" href="dist/zuck.min.css">
-
- <!-- lib skins -->
- <link rel="stylesheet" href="dist/skins/snapgram.css">
- <link rel="stylesheet" href="dist/skins/vemdezap.css">
- <link rel="stylesheet" href="dist/skins/facesnap.css">
- <link rel="stylesheet" href="dist/skins/snapssenger.css">
- </head>
- <body>
- <h1 id="header"> </h1>
- <a href="https://ramon.codes/projects/zuck.js" target="_blank" class="disclaimer">
- <img src="ICON.png" alt="zuck.js logo" />
- <p>This a demonstration of <strong>zuck.js</strong> javascript library.</p>
- <p>Not associated with Facebook, Instagram, WhatsApp or Snapchat.</p>
- </a>
- <div id="stories" class="storiesWrapper"></div>
- <div class="skin">
- Choose your theme:
- <select id="skin" onchange="changeSkin(this.options[this.selectedIndex].value);">
- <option value="Snapgram">Snapgram (without fullscreen)</option>
- <option value="FaceSnap">FaceSnap (with fullscreen)</option>
- <option value="VemDeZAP">VemDeZAP (timeline + arrows)</option>
- <option value="Snapssenger">Snapssenger (with previews)</option>
- </select>
- </div>
- <script src="dist/zuck.min.js"></script>
- <script src="demo/script.js"></script>
- <script>
- var currentSkin = getCurrentSkin();
- var stories = new Zuck('stories', {
- backNative: true,
- previousTap: true,
- skin: currentSkin['name'],
- autoFullScreen: currentSkin['params']['autoFullScreen'],
- avatars: currentSkin['params']['avatars'],
- paginationArrows: currentSkin['params']['paginationArrows'],
- list: currentSkin['params']['list'],
- cubeEffect: currentSkin['params']['cubeEffect'],
- localStorage: true,
- stories: [
- Zuck.buildTimelineItem(
- "ramon",
- "https://raw.githubusercontent.com/ramon82/assets/master/zuck.js/users/1.jpg",
- "Ramon",
- "https://ramon.codes",
- timestamp(),
- [
- ["ramon-1", "photo", 3, "https://raw.githubusercontent.com/ramon82/assets/master/zuck.js/stories/1.jpg", "https://raw.githubusercontent.com/ramon82/assets/master/zuck.js/stories/1.jpg", '', false, false, timestamp()],
- ["ramon-2", "video", 0, "https://raw.githubusercontent.com/ramon82/assets/master/zuck.js/stories/2.mp4", "https://raw.githubusercontent.com/ramon82/assets/master/zuck.js/stories/2.jpg", '', false, false, timestamp()],
- ["ramon-3", "photo", 3, "https://raw.githubusercontent.com/ramon82/assets/master/zuck.js/stories/3.png", "https://raw.githubusercontent.com/ramon82/assets/master/zuck.js/stories/3.png", 'https://ramon.codes', 'Visit my Portfolio', false, timestamp()]
- ]
- ),
- Zuck.buildTimelineItem(
- "gorillaz",
- "https://raw.githubusercontent.com/ramon82/assets/master/zuck.js/users/2.jpg",
- "Gorillaz",
- "",
- timestamp(),
- [
- ["gorillaz-1", "video", 0, "https://raw.githubusercontent.com/ramon82/assets/master/zuck.js/stories/4.mp4", "https://raw.githubusercontent.com/ramon82/assets/master/zuck.js/stories/4.jpg", '', false, false, timestamp()],
- ["gorillaz-2", "photo", 3, "https://raw.githubusercontent.com/ramon82/assets/master/zuck.js/stories/5.jpg", "https://raw.githubusercontent.com/ramon82/assets/master/zuck.js/stories/5.jpg", '', false, false, timestamp()],
- ]
- ),
- Zuck.buildTimelineItem(
- "ladygaga",
- "https://raw.githubusercontent.com/ramon82/assets/master/zuck.js/users/3.jpg",
- "Lady Gaga",
- "",
- timestamp(),
- [
- ["ladygaga-1", "photo", 5, "https://raw.githubusercontent.com/ramon82/assets/master/zuck.js/stories/6.jpg", "https://raw.githubusercontent.com/ramon82/assets/master/zuck.js/stories/6.jpg", '', false, false, timestamp()],
- ["ladygaga-2", "photo", 3, "https://raw.githubusercontent.com/ramon82/assets/master/zuck.js/stories/7.jpg", "https://raw.githubusercontent.com/ramon82/assets/master/zuck.js/stories/7.jpg", 'http://ladygaga.com', false, false, timestamp()],
- ]
- ),
- Zuck.buildTimelineItem(
- "starboy",
- "https://raw.githubusercontent.com/ramon82/assets/master/zuck.js/users/4.jpg",
- "The Weeknd",
- "",
- timestamp(),
- [
- ["starboy-1", "photo", 5, "https://raw.githubusercontent.com/ramon82/assets/master/zuck.js/stories/8.jpg", "https://raw.githubusercontent.com/ramon82/assets/master/zuck.js/stories/8.jpg", '', false, false, timestamp()]
- ]
- ),
- Zuck.buildTimelineItem(
- "riversquomo",
- "https://raw.githubusercontent.com/ramon82/assets/master/zuck.js/users/5.jpg",
- "Rivers Cuomo",
- "",
- timestamp(),
- [
- ["riverscuomo", "photo", 10, "https://raw.githubusercontent.com/ramon82/assets/master/zuck.js/stories/9.jpg", "https://raw.githubusercontent.com/ramon82/assets/master/zuck.js/stories/9.jpg", '', false, false, timestamp()]
- ]
- )
- ]
- });
- </script>
- </body>
- </html>
|