index.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <html>
  2. <head>
  3. <title>zuck.js</title>
  4. <link rel="icon" href="ICON.png">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0" />
  6. <!-- demo styles -->
  7. <link rel="stylesheet" href="demo/style.css">
  8. <!-- lib styles -->
  9. <link rel="stylesheet" href="dist/zuck.min.css">
  10. <!-- lib skins -->
  11. <link rel="stylesheet" href="dist/skins/snapgram.css">
  12. <link rel="stylesheet" href="dist/skins/vemdezap.css">
  13. <link rel="stylesheet" href="dist/skins/facesnap.css">
  14. <link rel="stylesheet" href="dist/skins/snapssenger.css">
  15. </head>
  16. <body>
  17. <h1 id="header">&nbsp;</h1>
  18. <a href="https://ramon.codes/projects/zuck.js" target="_blank" class="disclaimer">
  19. <img src="ICON.png" alt="zuck.js logo" />
  20. <p>This a demonstration of <strong>zuck.js</strong> javascript library.</p>
  21. <p>Not associated with Facebook, Instagram, WhatsApp or Snapchat.</p>
  22. </a>
  23. <div id="stories" class="storiesWrapper"></div>
  24. <div class="skin">
  25. Choose your theme:
  26. <select id="skin" onchange="changeSkin(this.options[this.selectedIndex].value);">
  27. <option value="Snapgram">Snapgram (without fullscreen)</option>
  28. <option value="FaceSnap">FaceSnap (with fullscreen)</option>
  29. <option value="VemDeZAP">VemDeZAP (timeline + arrows)</option>
  30. <option value="Snapssenger">Snapssenger (with previews)</option>
  31. </select>
  32. </div>
  33. <script src="dist/zuck.min.js"></script>
  34. <script src="demo/script.js"></script>
  35. <script>
  36. var currentSkin = getCurrentSkin();
  37. var stories = new Zuck('stories', {
  38. backNative: true,
  39. previousTap: true,
  40. skin: currentSkin['name'],
  41. autoFullScreen: currentSkin['params']['autoFullScreen'],
  42. avatars: currentSkin['params']['avatars'],
  43. paginationArrows: currentSkin['params']['paginationArrows'],
  44. list: currentSkin['params']['list'],
  45. cubeEffect: currentSkin['params']['cubeEffect'],
  46. localStorage: true,
  47. stories: [
  48. Zuck.buildTimelineItem(
  49. "ramon",
  50. "https://raw.githubusercontent.com/ramon82/assets/master/zuck.js/users/1.jpg",
  51. "Ramon",
  52. "https://ramon.codes",
  53. timestamp(),
  54. [
  55. ["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()],
  56. ["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()],
  57. ["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()]
  58. ]
  59. ),
  60. Zuck.buildTimelineItem(
  61. "gorillaz",
  62. "https://raw.githubusercontent.com/ramon82/assets/master/zuck.js/users/2.jpg",
  63. "Gorillaz",
  64. "",
  65. timestamp(),
  66. [
  67. ["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()],
  68. ["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()],
  69. ]
  70. ),
  71. Zuck.buildTimelineItem(
  72. "ladygaga",
  73. "https://raw.githubusercontent.com/ramon82/assets/master/zuck.js/users/3.jpg",
  74. "Lady Gaga",
  75. "",
  76. timestamp(),
  77. [
  78. ["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()],
  79. ["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()],
  80. ]
  81. ),
  82. Zuck.buildTimelineItem(
  83. "starboy",
  84. "https://raw.githubusercontent.com/ramon82/assets/master/zuck.js/users/4.jpg",
  85. "The Weeknd",
  86. "",
  87. timestamp(),
  88. [
  89. ["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()]
  90. ]
  91. ),
  92. Zuck.buildTimelineItem(
  93. "riversquomo",
  94. "https://raw.githubusercontent.com/ramon82/assets/master/zuck.js/users/5.jpg",
  95. "Rivers Cuomo",
  96. "",
  97. timestamp(),
  98. [
  99. ["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()]
  100. ]
  101. )
  102. ]
  103. });
  104. </script>
  105. </body>
  106. </html>