[
  {
    "path": "Demo/demo.html",
    "content": "<!doctype html>\n<html>\n<head>\n\t<meta charset=\"utf-8\">\n\t<title>jQuery One Page Scroll by Pete R. | The Pete Design</title>\n\t<meta name=\"title\" content=\"jQuery One Page Scroll by Pete R. | The Pete Design\" />\n\t<meta name=\"description\" content=\"Create an Apple-like one page scroller website (iPhone 5S website) with One Page Scroll plugin\" />\n\t<link rel=\"image_src\" href=\"/images/notify_better_image.png\" />\n\n\t<meta content=\"https://www.thepetedesign.com/demos/onepage_scroll_demo.html\" property=\"og:url\" />\n\t<meta content=\"https://www.thepetedesign.com/images/onepage_scroll_image.png\" property=\"og:image\" />\n\t<link rel=\"shortcut icon\" id=\"favicon\" href=\"favicon.png\"> \n\t<meta name=\"author\" content=\"Pete R.\">\n\t<link rel=\"canonical\" href=\"https://www.thepetedesign.com/demos/onepage_scroll_demo.html\" />\n\t<link href='https://fonts.googleapis.com/css?family=Open+Sans:300,400,700' rel='stylesheet' type='text/css'>\n\t<link href='https://fonts.googleapis.com/css?family=Pacifico:400' rel='stylesheet' type='text/css'>\n\t<script type=\"text/javascript\" src=\"https://code.jquery.com/jquery-1.9.1.js\"></script>\n  <script type=\"text/javascript\" src=\"jquery.onepage-scroll.js\"></script>\n  <link href='onepage-scroll.css' rel='stylesheet' type='text/css'>\n  <meta name=\"viewport\" content=\"initial-scale=1, width=device-width, maximum-scale=1, minimum-scale=1, user-scalable=no\">\n  <style>\n    html {\n      height: 100%;\n    }\n    body {\n      background: #E2E4E7;\n      padding: 0;\n      text-align: center;\n      font-family: 'open sans';\n      position: relative;\n      margin: 0;\n      height: 100%;\n      -webkit-font-smoothing: antialiased;\n    }\n    \n    .wrapper {\n    \theight: 100% !important;\n    \theight: 100%;\n    \tmargin: 0 auto; \n    \toverflow: hidden;\n    }\n    \n    a {\n      text-decoration: none;\n    }\n    \n    \n    h1, h2 {\n      width: 100%;\n      float: left;\n    }\n    h1 {\n      margin-top: 100px;\n      color: #000;\n      margin-bottom: 5px;\n      font-size: 70px;\n      letter-spacing: -4px;\n      font-weight: 100;\n    }\n    h1 span {\n      font-size: 26px;\n      margin: 0 5px;\n      text-transform: capitalize;\n      background: rgba(0,0,0,0.85);\n      display: inline-block;\n      color: #6D461D;\n      border-radius: 5px 5px;\n      -webkit-border-radius: 5px 5px;\n      -moz-border-radius: 5px 5px;\n      text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);\n      padding: 3px 10px;\n    }\n    h2 {\n      color: #6D461D;\n      font-weight: 100;\n      margin-top: 0;\n      margin-bottom: 10px;\n    }\n    \n    .pointer {\n      color: #9b59b6;\n      font-family: 'Pacifico', cursive;\n      font-size: 30px;\n      margin-top: 15px;\n    }\n    code {\n      margin: 20px 1%;\n      float: left;\n      width: 48%;\n      height: 105px;\n      background: rgba(0,0,0,0.1);\n      border: rgba(0,0,0,0.05) 5px solid;\n      border-radius: 5px;\n      padding:5px;\n      color: white;\n      text-align: center;\n      font-size: 15px;\n      margin-top: 25px;\n      display: block;\n      box-sizing: border-box;\n      -webkit-box-sizing: border-box;\n      -moz-box-sizing: border-box;\n    }\n    code.html {\n      color: #7EC9E6;\n    }\n    code.js {\n      color: #FFAD00;\n    }\n\n    .main {\n      float: left;\n      width: 100%;\n      margin: 0 auto;\n    }\n    \n    .main h1 {\n      padding:150px 50px;\n      float: left;\n      width: 100%;\n      font-size: 45px;\n      box-sizing: border-box;\n      -webkit-box-sizing: border-box;\n      -moz-box-sizing: border-box;\n      font-weight: 100;\n      color: white;\n      margin: 0;\n    }\n   \n    .main h1.demo1 {\n      background: #1ABC9C;\n    }\n    \n    .reload.bell {\n      font-size: 12px;\n      padding: 20px;\n      width: 45px;\n      text-align: center;\n      height: 47px;\n      border-radius: 50px;\n      -webkit-border-radius: 50px;\n      -moz-border-radius: 50px;\n    }\n    \n    .reload.bell #notification {\n      font-size: 25px;\n      line-height: 140%;\n    }\n    \n    .reload, .btn{\n      display: inline-block;\n      border: 4px solid #A2261E;\n      border-radius: 5px;\n      -moz-border-radius: 5px;\n      -webkit-border-radius: 5px;\n      background: #CC3126;\n      display: inline-block;\n      line-height: 100%;\n      padding: 0.7em;\n      text-decoration: none;\n      color: #fff;\n      width: 100px;\n      line-height: 140%;\n      font-size: 17px;\n      font-family: open sans;\n      font-weight: bold;\n    }\n    .reload:hover{\n      background: #444;\n    }\n    .btn {\n      width: 200px;\n      color: rgb(255, 255, 255);\n      border: 4px solid rgb(0, 0, 0);\n      background: rgba(3, 3, 3, 0.75);\n    }\n    .clear {\n      width: auto;\n    }\n    .btn:hover, .btn:hover {\n      background: #444;\n    }\n    .btns {\n      width: 410px;\n      margin: 50px auto;\n    }\n    .credit {\n      text-align: center;\n      color: rgba(0,0,0,0.5);\n      padding: 10px;\n      width: 410px;\n      clear: both;\n    }\n    .credit a {\n      color: rgba(0,0,0,0.85);\n      text-decoration: none;\n      font-weight: bold;\n      text-align: center;\n    }\n    \n    .back {\n      position: absolute;\n      top: 0;\n      left: 0;\n      text-align: center;\n      display: block;\n      padding: 7px;\n      width: 100%;\n      box-sizing: border-box;\n      -moz-box-sizing: border-box;\n      -webkit-box-sizing: border-box;\n      background: rgba(255, 255, 255, 0.25);\n      font-weight: bold;\n      font-size: 13px;\n      color: #000;\n      -webkit-transition: all 500ms ease-in-out;\n      -moz-transition: all 500ms ease-in-out;\n      -o-transition: all 500ms ease-in-out;\n      transition: all 500ms ease-in-out;\n    }\n    .back:hover {\n      color: black;\n      background: rgba(255, 255, 255, 0.5);\n    }\n    \n    header {\n      position: relative;\n      z-index: 10;\n    }\n    .main section .page_container {\n      position: relative;\n      top: 25%;\n      margin: 0 auto 0;\n      max-width: 950px;\n      z-index: 3;\n    }\n    .main section  {\n      overflow: hidden;\n    }\n    \n    .main section > img {\n      position: absolute;\n      max-width: 100%;\n      z-index: 1;\n    }\n    \n    .main section.page1 {\n      background:rgb(230, 217, 200);\n    }\n    .main section.page1 h1 {\n      text-align: left;\n      padding: 0;\n      margin-bottom: 15px;\n      font-size: 70px;\n      color: black;\n    }\n    .main section.page1 h2 {\n      color: rgba(0,0,0,0.85);\n      text-align: center;\n      width: 435px;\n      line-height: 160%;\n    }\n    .main section .page_container .btns {\n      clear: both;\n      float: left;\n      text-align: center;\n      width: 435px;\n    }\n    .main section .page_container .btns a{\n      text-align: center;\n    }\n    .main section.page2 {\n      background: #555557 url(back-phone.png) no-repeat center -150px ;\n    }\n    .main section.page2 > img {\n      position: absolute;\n      top: -300px;\n      left: 50%;\n      margin-left: -1095px;\n    }\n    .main section.page2 .page_container {\n      margin-top: 240px;\n      overflow: hidden;\n    }\n    .main section.page2 h1 {\n      text-align: center;\n      padding: 0;\n      margin-bottom: 15px;\n      font-size: 50px;\n      letter-spacing: -1px;\n      color: white;\n    }\n    .main section.page2 h2 {\n      color: rgba(255,255,255,0.85);\n      text-align: center;\n      line-height: 160%;\n      font-weight: 100;\n    }\n    .viewing-page-2 .back{\n      background: rgba(0, 0, 0, 0.25);\n      color: #FFF;\n      }\n    .main section.page3 {\n      background:url(tilted-phone.png) no-repeat 156px -150px ;\n    }\n    .main section.page3 .page_container {\n      overflow: hidden;\n      width: 500px;\n      right: -285px;\n    }\n    .main section.page3 h1 {\n      text-align: left;\n      padding: 0;\n      margin-bottom: 0;\n      font-size: 70px;\n      letter-spacing: -1px;\n      color: black;\n    }\n    .main section.page3 h2 {\n      color: rgba(0,0,0,0.85);\n      text-align: left;\n      line-height: 160%;\n      font-weight: 100;\n      font-size: 21px;\n    }\n    \n    body.disabled-onepage-scroll .onepage-wrapper  section {\n      min-height: 100%;\n      height: auto;\n    }\n    \n    body.disabled-onepage-scroll .main section .page_container, body.disabled-onepage-scroll .main section.page3 .page_container  {\n      padding: 20px;\n      margin-top: 150px;\n      -webkit-box-sizing: border-box;\n      -moz-box-sizing: border-box;\n      box-sizing: border-box;\n    }\n    \n    body.disabled-onepage-scroll  section .page_container h1{\n      text-align: center;\n      font-size: 50px;\n    }\n    body.disabled-onepage-scroll section .page_container h2, body.disabled-onepage-scroll section .page_container .credit, body.disabled-onepage-scroll section .page_container .btns{\n      text-align: center;\n      width: 100%;\n    }\n    \n    body.disabled-onepage-scroll .main section.page1 > img {\n      position: absolute;\n      width: 80%;\n      left: 10%;\n    }\n    \n    body.disabled-onepage-scroll .main section > img {\n      position: relative;\n      max-width: 80%;\n      bottom: 0;\n    }\n    body.disabled-onepage-scroll code {\n      width: 95%;\n      margin: 0 auto 25px;\n      float: none;\n      overflow: hidden;\n    }\n    \n    body.disabled-onepage-scroll .main section.page3 .page_container {\n      width: 90%;\n      margin-left: auto;\n      margin-right: auto;\n      right: 0;\n    }\n\t  \nbody .one .bsa_it_ad { background: transparent; border: none; font-family: inherit; padding: 0 15px 0 10px; margin: 0; text-align: center; }\nbody .one .bsa_it_ad:hover img { -moz-box-shadow: 0 0 3px #000; -webkit-box-shadow: 0 0 3px #000; box-shadow: 0 0 3px #000; }\nbody .one .bsa_it_ad .bsa_it_i { display: block; padding: 0; float: none; margin: 0 0 5px; }\nbody .one .bsa_it_ad .bsa_it_i img { padding: 0; border: none; }\nbody .one .bsa_it_ad .bsa_it_t { padding: 6px 0; }\nbody .one .bsa_it_ad .bsa_it_d { padding: 0; font-size: 12px; color: #333; }\nbody .one .bsa_it_p { display: none; }\nbody #bsap_aplink, body #bsap_aplink:hover { display: block; font-size: 10px; margin: 12px 15px 0; text-align: center; }\n\n.ads {\n  position: fixed;\n  left: 10px;\n  bottom: 10px;\n  box-sizing: border-box;\n  -webkit-box-sizing: border-box;\n  -moz-box-sizing: border-box;\n  z-index: 99;\n  text-align: center;\n  max-width: 200px;\n}\n\n.ads a {\n  color: black;\n}\n\n.ad-header {\n  margin: 0 0 -2px 0px;\n  background: white;\n  border-radius: 3px 3px 0 0;\n  overflow: hidden;\n}\n.ad-header a {\n  float: right;\n  border-left: 1px solid #f3f3f3;\n  padding:10px;\n  line-height: 100%;\n  font-weight: bold;\n  text-transform: uppercase;\n  text-align: center;\n  color: black;\n}\n.ad-header a:hover {\n  background: #eee;\n}\n\n.ads .promo {\n  position: absolute;\n  top: -195px;\n  left: 0;\n}\n\n.message {\n  max-width: 550px;\n  margin: 50px auto 0;\n  padding: 14px;\n  background: #72EC80;\n  color: #0E530E;\n  font-weight: normal;\n  font-style: normal;\n  border-radius: 3px;\n}\n\n.success-message a{\n  color: black;\n  border-bottom: 1px dotted #000;\n}\n\n.success-message {\n  background: #72EC80;\n  color: #0E530E;\n}\n\n.error-message a{\n  color: #FFF;\n  border-bottom: 1px dotted #fff;\n}\n\n.error-message {\n  background: #EC7272;\n  color: #FFF;\n}\n\n.socials {\n  text-align: center;\n  background: rgba(255, 255, 255, 0.1);\n  width: 100%;\n  float: left;\n  padding: 9px 5px 5px;\n  margin: 0 0 60px 0;\n}\n.socials > * {\n  display: inline !important;\n}\n.socials .fb-like {\n  top: -5px;\n  min-width: 85px;\n  text-align: left;\n}\n.socials .fb-like > span {\n  vertical-align: top;\n}\n.socials .twitter-share-button {\n  width: 85px  !important;\n}\n\t  \n#carbonads {\n  --width: 180px;\n  --font-size: 14px;\n}\n\n#carbonads {\n  font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n  display: block;\n  overflow: hidden;\n  margin-bottom: 20px;\n  max-width: var(--width);\n  border-radius: 4px;\n  text-align: center;\n  box-shadow: 0 0 0 1px hsla(0, 0%, 0%, .1);\n  background-color: hsl(0, 0%, 98%);\n  font-size: var(--font-size);\n  line-height: 1.5;\n}\n\n#carbonads a {\n  color: inherit;\n  text-decoration: none;\n}\n\n#carbonads a:hover {\n  color: inherit;\n}\n\n#carbonads span {\n  position: relative;\n  display: block;\n  overflow: hidden;\n}\n\n.carbon-img {\n  display: block;\n  margin-bottom: 8px;\n  max-width: var(--width);\n  line-height: 1;\n}\n\n.carbon-img img {\n  display: block;\n  margin: 0 auto;\n  max-width: var(--width) !important;\n  width: var(--width);\n  height: auto;\n}\n\n.carbon-text {\n  display: block;\n  padding: 0 1em 8px;\n}\n\n.carbon-poweredby {\n  display: block;\n  padding: 10px var(--font-size);\n  background: repeating-linear-gradient(-45deg, transparent, transparent 5px, hsla(0, 0%, 0%, .025) 5px, hsla(0, 0%, 0%, .025) 10px) hsla(203, 11%, 95%, .4);\n  text-transform: uppercase;\n  letter-spacing: .5px;\n  font-weight: 600;\n  font-size: 9px;\n  line-height: 0;\n}\n\n@media only screen and (min-width: 320px) and (max-width: 759px) {\n  #carbonads {\n    float: none;\n    margin: 0 auto;\n    max-width: 330px;\n  }\n  #carbonads span {\n    position: relative;\n  }\n  #carbonads > span {\n    max-width: none;\n  }\n  .carbon-img {\n    float: left;\n    margin: 0;\n  }\n\n  .carbon-img img {\n    max-width: 130px !important;\n  }\n  .carbon-text {\n    float: left;\n    margin-bottom: 0;\n    padding: 8px 20px;\n    text-align: left;\n    max-width: calc(100% - 130px - 3em);\n  }\n  .carbon-poweredby {\n    left: 130px;\n    bottom: 0;\n    display: block;\n    width: 100%;\n  }}}\n\t</style>\n\t<script>\n\t  $(document).ready(function(){\n      $(\".main\").onepage_scroll({\n        sectionContainer: \"section\",\n        responsiveFallback: 600,\n        loop: true\n      });\n\t\t});\n\t\t\n\t</script>\n</head>\n<body>\n  <div class=\"wrapper\">\n\t  <!-- AdPacks.com Zone Code -->\n      <div class=\"ads\">\n      <script async type=\"text/javascript\" src=\"//cdn.carbonads.com/carbon.js?serve=CKYI5KJE&placement=wwwthepetedesigncom\" id=\"_carbonads_js\"></script>\n      </div>\n      <!-- End AdPacks.com Zone Code -->\n\t  <div class=\"main\">\n\t    \n      <section class=\"page1\">\n        <div class=\"page_container\">\n          <h1>One Page Scroll</h1>\n          <h2>Create an Apple-like one page scroller website (iPhone 5S website) with One Page Scroll plugin</h2>\n          <p class=\"credit\">Created by <a href=\"https://www.thepetedesign.com\">Pete R.</a>, Founder of <a href=\"https://www.bucketlistly.com\" target=\"_blank\">BucketListly</a></p>\n          <div class=\"btns\">\n  \t        <a class=\"reload btn\" href=\"https://github.com/peachananr/onepage-scroll\">Download on Github</a>\n  \t      </div>\n  \t    </div>\n  \t    <img src=\"phones.png\" alt=\"phones\">\n      </section>\n\t    \n\t    <section class=\"page2\">\n\t      <div class=\"page_container\">\n          <h1>Ready-to-use plugin</h1>\n          <h2>All you need is an HTML markup, call the script and BAM!</h2>\n          <code class=\"html\">\n  \t        &lt;div class=\"main\"&gt;<br>\n  \t          &lt;section&gt;...&lt;/section&gt;<br>\n  \t          &lt;section&gt;...&lt;/section&gt;<br>\n  \t          ...<br>\n  \t        &lt;/div&gt;\n  \t      </code>\n  \t      \n  \t      <code class=\"js\">\n\t          $(\".main\").onepage_scroll();\n\t        </code>\n\t      </div>\n      </section>\n\t    \n\t    <section class=\"page3\">\n\t      <div class=\"page_container\">\n          <h1>Pretty Neat Eh?</h1>\n          <h2>You can customise the animation timing, the selector or even the animation easing using CSS3. I can't wait to see what you guys will come up with. Don't forget to grab them for free on Github'</h2>\n          <div class=\"btns\">\n  \t        <a class=\"reload btn\" href=\"https://github.com/peachananr/onepage-scroll\">Download on Github</a>\n  \t      </div>\n  \t    </div>\n      </section>\n    </div>\n    <a class=\"back\" href=\"https://www.thepetedesign.com/#design\">Back to The Pete Design</a>\n  </div>\n<!-- Global site tag (gtag.js) - Google Analytics -->\n<script async src=\"https://www.googletagmanager.com/gtag/js?id=UA-11278966-3\"></script>\n<script>\n  window.dataLayer = window.dataLayer || [];\n  function gtag(){dataLayer.push(arguments);}\n  gtag('js', new Date());\n\n  gtag('config', 'UA-11278966-3');\n</script>\n\n\n</body>\n</html>\n"
  },
  {
    "path": "Demo/jquery.onepage-scroll.js",
    "content": "/* ===========================================================\n * jquery-onepage-scroll.js v1.3.1\n * ===========================================================\n * Copyright 2013 Pete Rojwongsuriya.\n * http://www.thepetedesign.com\n *\n * Create an Apple-like website that let user scroll\n * one page at a time\n *\n * Credit: Eike Send for the awesome swipe event\n * https://github.com/peachananr/onepage-scroll\n *\n * License: GPL v3\n *\n * ========================================================== */\n\n!function($){\n\n  var defaults = {\n    sectionContainer: \"section\",\n    easing: \"ease\",\n    animationTime: 1000,\n    pagination: true,\n    updateURL: false,\n    keyboard: true,\n    beforeMove: null,\n    afterMove: null,\n    loop: true,\n    responsiveFallback: false,\n    direction : 'vertical'\n  };\n\n  /*------------------------------------------------*/\n  /*  Credit: Eike Send for the awesome swipe event */\n  /*------------------------------------------------*/\n\n  $.fn.swipeEvents = function() {\n      return this.each(function() {\n\n        var startX,\n            startY,\n            $this = $(this);\n\n        $this.bind('touchstart', touchstart);\n\n        function touchstart(event) {\n          var touches = event.originalEvent.touches;\n          if (touches && touches.length) {\n            startX = touches[0].pageX;\n            startY = touches[0].pageY;\n            $this.bind('touchmove', touchmove);\n          }\n        }\n\n        function touchmove(event) {\n          var touches = event.originalEvent.touches;\n          if (touches && touches.length) {\n            var deltaX = startX - touches[0].pageX;\n            var deltaY = startY - touches[0].pageY;\n\n            if (deltaX >= 50) {\n              $this.trigger(\"swipeLeft\");\n            }\n            if (deltaX <= -50) {\n              $this.trigger(\"swipeRight\");\n            }\n            if (deltaY >= 50) {\n              $this.trigger(\"swipeUp\");\n            }\n            if (deltaY <= -50) {\n              $this.trigger(\"swipeDown\");\n            }\n            if (Math.abs(deltaX) >= 50 || Math.abs(deltaY) >= 50) {\n              $this.unbind('touchmove', touchmove);\n            }\n          }\n        }\n\n      });\n    };\n\n\n  $.fn.onepage_scroll = function(options){\n    var settings = $.extend({}, defaults, options),\n        el = $(this),\n        sections = $(settings.sectionContainer)\n        total = sections.length,\n        status = \"off\",\n        topPos = 0,\n        leftPos = 0,\n        lastAnimation = 0,\n        quietPeriod = 500,\n        paginationList = \"\";\n\n    $.fn.transformPage = function(settings, pos, index) {\n      if (typeof settings.beforeMove == 'function') settings.beforeMove(index);\n\n      // Just a simple edit that makes use of modernizr to detect an IE8 browser and changes the transform method into\n      // an top animate so IE8 users can also use this script.\n      if($('html').hasClass('ie8')){\n        if (settings.direction == 'horizontal') {\n          var toppos = (el.width()/100)*pos;\n          $(this).animate({left: toppos+'px'},settings.animationTime);\n        } else {\n          var toppos = (el.height()/100)*pos;\n          $(this).animate({top: toppos+'px'},settings.animationTime);\n        }\n      } else{\n        $(this).css({\n          \"-webkit-transform\": ( settings.direction == 'horizontal' ) ? \"translate3d(\" + pos + \"%, 0, 0)\" : \"translate3d(0, \" + pos + \"%, 0)\",\n         \"-webkit-transition\": \"all \" + settings.animationTime + \"ms \" + settings.easing,\n         \"-moz-transform\": ( settings.direction == 'horizontal' ) ? \"translate3d(\" + pos + \"%, 0, 0)\" : \"translate3d(0, \" + pos + \"%, 0)\",\n         \"-moz-transition\": \"all \" + settings.animationTime + \"ms \" + settings.easing,\n         \"-ms-transform\": ( settings.direction == 'horizontal' ) ? \"translate3d(\" + pos + \"%, 0, 0)\" : \"translate3d(0, \" + pos + \"%, 0)\",\n         \"-ms-transition\": \"all \" + settings.animationTime + \"ms \" + settings.easing,\n         \"transform\": ( settings.direction == 'horizontal' ) ? \"translate3d(\" + pos + \"%, 0, 0)\" : \"translate3d(0, \" + pos + \"%, 0)\",\n         \"transition\": \"all \" + settings.animationTime + \"ms \" + settings.easing\n        });\n      }\n      $(this).one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function(e) {\n        if (typeof settings.afterMove == 'function') settings.afterMove(index);\n      });\n    }\n\n    $.fn.moveDown = function() {\n      var el = $(this)\n      index = $(settings.sectionContainer +\".active\").data(\"index\");\n      current = $(settings.sectionContainer + \"[data-index='\" + index + \"']\");\n      next = $(settings.sectionContainer + \"[data-index='\" + (index + 1) + \"']\");\n      if(next.length < 1) {\n        if (settings.loop == true) {\n          pos = 0;\n          next = $(settings.sectionContainer + \"[data-index='1']\");\n        } else {\n          return\n        }\n\n      }else {\n        pos = (index * 100) * -1;\n      }\n      if (typeof settings.beforeMove == 'function') settings.beforeMove( next.data(\"index\"));\n      current.removeClass(\"active\")\n      next.addClass(\"active\");\n      if(settings.pagination == true) {\n        $(\".onepage-pagination li a\" + \"[data-index='\" + index + \"']\").removeClass(\"active\");\n        $(\".onepage-pagination li a\" + \"[data-index='\" + next.data(\"index\") + \"']\").addClass(\"active\");\n      }\n\n      $(\"body\")[0].className = $(\"body\")[0].className.replace(/\\bviewing-page-\\d.*?\\b/g, '');\n      $(\"body\").addClass(\"viewing-page-\"+next.data(\"index\"))\n\n      if (history.replaceState && settings.updateURL == true) {\n        var href = window.location.href.substr(0,window.location.href.indexOf('#')) + \"#\" + (index + 1);\n        history.pushState( {}, document.title, href );\n      }\n      el.transformPage(settings, pos, next.data(\"index\"));\n    }\n\n    $.fn.moveUp = function() {\n      var el = $(this)\n      index = $(settings.sectionContainer +\".active\").data(\"index\");\n      current = $(settings.sectionContainer + \"[data-index='\" + index + \"']\");\n      next = $(settings.sectionContainer + \"[data-index='\" + (index - 1) + \"']\");\n\n      if(next.length < 1) {\n        if (settings.loop == true) {\n          pos = ((total - 1) * 100) * -1;\n          next = $(settings.sectionContainer + \"[data-index='\"+total+\"']\");\n        }\n        else {\n          return\n        }\n      }else {\n        pos = ((next.data(\"index\") - 1) * 100) * -1;\n      }\n      if (typeof settings.beforeMove == 'function') settings.beforeMove(next.data(\"index\"));\n      current.removeClass(\"active\")\n      next.addClass(\"active\")\n      if(settings.pagination == true) {\n        $(\".onepage-pagination li a\" + \"[data-index='\" + index + \"']\").removeClass(\"active\");\n        $(\".onepage-pagination li a\" + \"[data-index='\" + next.data(\"index\") + \"']\").addClass(\"active\");\n      }\n      $(\"body\")[0].className = $(\"body\")[0].className.replace(/\\bviewing-page-\\d.*?\\b/g, '');\n      $(\"body\").addClass(\"viewing-page-\"+next.data(\"index\"))\n\n      if (history.replaceState && settings.updateURL == true) {\n        var href = window.location.href.substr(0,window.location.href.indexOf('#')) + \"#\" + (index - 1);\n        history.pushState( {}, document.title, href );\n      }\n      el.transformPage(settings, pos, next.data(\"index\"));\n    }\n\n    $.fn.moveTo = function(page_index) {\n      current = $(settings.sectionContainer + \".active\")\n      next = $(settings.sectionContainer + \"[data-index='\" + (page_index) + \"']\");\n      if(next.length > 0) {\n        if (typeof settings.beforeMove == 'function') settings.beforeMove(next.data(\"index\"));\n        current.removeClass(\"active\")\n        next.addClass(\"active\")\n        $(\".onepage-pagination li a\" + \".active\").removeClass(\"active\");\n        $(\".onepage-pagination li a\" + \"[data-index='\" + (page_index) + \"']\").addClass(\"active\");\n        $(\"body\")[0].className = $(\"body\")[0].className.replace(/\\bviewing-page-\\d.*?\\b/g, '');\n        $(\"body\").addClass(\"viewing-page-\"+next.data(\"index\"))\n\n        pos = ((page_index - 1) * 100) * -1;\n\n        if (history.replaceState && settings.updateURL == true) {\n            var href = window.location.href.substr(0,window.location.href.indexOf('#')) + \"#\" + (page_index - 1);\n            history.pushState( {}, document.title, href );\n        }\n        el.transformPage(settings, pos, page_index);\n      }\n    }\n\n    function responsive() {\n      //start modification\n      var valForTest = false;\n      var typeOfRF = typeof settings.responsiveFallback\n\n      if(typeOfRF == \"number\"){\n        valForTest = $(window).width() < settings.responsiveFallback;\n      }\n      if(typeOfRF == \"boolean\"){\n        valForTest = settings.responsiveFallback;\n      }\n      if(typeOfRF == \"function\"){\n        valFunction = settings.responsiveFallback();\n        valForTest = valFunction;\n        typeOFv = typeof valForTest;\n        if(typeOFv == \"number\"){\n          valForTest = $(window).width() < valFunction;\n        }\n      }\n\n      //end modification\n      if (valForTest) {\n        $(\"body\").addClass(\"disabled-onepage-scroll\");\n        $(document).unbind('mousewheel DOMMouseScroll MozMousePixelScroll');\n        el.swipeEvents().unbind(\"swipeDown swipeUp\");\n      } else {\n        if($(\"body\").hasClass(\"disabled-onepage-scroll\")) {\n          $(\"body\").removeClass(\"disabled-onepage-scroll\");\n          $(\"html, body, .wrapper\").animate({ scrollTop: 0 }, \"fast\");\n        }\n\n\n        el.swipeEvents().bind(\"swipeDown\",  function(event){\n          if (!$(\"body\").hasClass(\"disabled-onepage-scroll\")) event.preventDefault();\n          el.moveUp();\n        }).bind(\"swipeUp\", function(event){\n          if (!$(\"body\").hasClass(\"disabled-onepage-scroll\")) event.preventDefault();\n          el.moveDown();\n        });\n\n        $(document).bind('mousewheel DOMMouseScroll MozMousePixelScroll', function(event) {\n          event.preventDefault();\n          var delta = event.originalEvent.wheelDelta || -event.originalEvent.detail;\n          init_scroll(event, delta);\n        });\n      }\n    }\n\n\n    function init_scroll(event, delta) {\n        deltaOfInterest = delta;\n        var timeNow = new Date().getTime();\n        // Cancel scroll if currently animating or within quiet period\n        if(timeNow - lastAnimation < quietPeriod + settings.animationTime) {\n            event.preventDefault();\n            return;\n        }\n\n        if (deltaOfInterest < 0) {\n          el.moveDown()\n        } else {\n          el.moveUp()\n        }\n        lastAnimation = timeNow;\n    }\n\n    // Prepare everything before binding wheel scroll\n\n    el.addClass(\"onepage-wrapper\").css(\"position\",\"relative\");\n    $.each( sections, function(i) {\n      $(this).css({\n        position: \"absolute\",\n        top: topPos + \"%\"\n      }).addClass(\"section\").attr(\"data-index\", i+1);\n\n\n      $(this).css({\n        position: \"absolute\",\n        left: ( settings.direction == 'horizontal' )\n          ? leftPos + \"%\"\n          : 0,\n        top: ( settings.direction == 'vertical' || settings.direction != 'horizontal' )\n          ? topPos + \"%\"\n          : 0\n      });\n\n      if (settings.direction == 'horizontal')\n        leftPos = leftPos + 100;\n      else\n        topPos = topPos + 100;\n\n\n      if(settings.pagination == true) {\n        paginationList += \"<li><a data-index='\"+(i+1)+\"' href='#\" + (i+1) + \"'></a></li>\"\n      }\n    });\n\n    el.swipeEvents().bind(\"swipeDown\",  function(event){\n      if (!$(\"body\").hasClass(\"disabled-onepage-scroll\")) event.preventDefault();\n      el.moveUp();\n    }).bind(\"swipeUp\", function(event){\n      if (!$(\"body\").hasClass(\"disabled-onepage-scroll\")) event.preventDefault();\n      el.moveDown();\n    });\n\n    // Create Pagination and Display Them\n    if (settings.pagination == true) {\n      if ($('ul.onepage-pagination').length < 1) $(\"<ul class='onepage-pagination'></ul>\").prependTo(\"body\");\n\n      if( settings.direction == 'horizontal' ) {\n        posLeft = (el.find(\".onepage-pagination\").width() / 2) * -1;\n        el.find(\".onepage-pagination\").css(\"margin-left\", posLeft);\n      } else {\n        posTop = (el.find(\".onepage-pagination\").height() / 2) * -1;\n        el.find(\".onepage-pagination\").css(\"margin-top\", posTop);\n      }\n      $('ul.onepage-pagination').html(paginationList);\n    }\n\n    if(window.location.hash != \"\" && window.location.hash != \"#1\") {\n      init_index =  window.location.hash.replace(\"#\", \"\")\n\n      if (parseInt(init_index) <= total && parseInt(init_index) > 0) {\n        $(settings.sectionContainer + \"[data-index='\" + init_index + \"']\").addClass(\"active\")\n        $(\"body\").addClass(\"viewing-page-\"+ init_index)\n        if(settings.pagination == true) $(\".onepage-pagination li a\" + \"[data-index='\" + init_index + \"']\").addClass(\"active\");\n\n        next = $(settings.sectionContainer + \"[data-index='\" + (init_index) + \"']\");\n        if(next) {\n          next.addClass(\"active\")\n          if(settings.pagination == true) $(\".onepage-pagination li a\" + \"[data-index='\" + (init_index) + \"']\").addClass(\"active\");\n          $(\"body\")[0].className = $(\"body\")[0].className.replace(/\\bviewing-page-\\d.*?\\b/g, '');\n          $(\"body\").addClass(\"viewing-page-\"+next.data(\"index\"))\n          if (history.replaceState && settings.updateURL == true) {\n            var href = window.location.href.substr(0,window.location.href.indexOf('#')) + \"#\" + (init_index);\n            history.pushState( {}, document.title, href );\n          }\n        }\n        pos = ((init_index - 1) * 100) * -1;\n        el.transformPage(settings, pos, init_index);\n      } else {\n        $(settings.sectionContainer + \"[data-index='1']\").addClass(\"active\")\n        $(\"body\").addClass(\"viewing-page-1\")\n        if(settings.pagination == true) $(\".onepage-pagination li a\" + \"[data-index='1']\").addClass(\"active\");\n      }\n    }else{\n      $(settings.sectionContainer + \"[data-index='1']\").addClass(\"active\")\n      $(\"body\").addClass(\"viewing-page-1\")\n      if(settings.pagination == true) $(\".onepage-pagination li a\" + \"[data-index='1']\").addClass(\"active\");\n    }\n\n    if(settings.pagination == true)  {\n      $(\".onepage-pagination li a\").click(function (){\n        var page_index = $(this).data(\"index\");\n        el.moveTo(page_index);\n      });\n    }\n\n\n    $(document).bind('mousewheel DOMMouseScroll MozMousePixelScroll', function(event) {\n      event.preventDefault();\n      var delta = event.originalEvent.wheelDelta || -event.originalEvent.detail;\n      if(!$(\"body\").hasClass(\"disabled-onepage-scroll\")) init_scroll(event, delta);\n    });\n\n\n    if(settings.responsiveFallback != false) {\n      $(window).resize(function() {\n        responsive();\n      });\n\n      responsive();\n    }\n\n    if(settings.keyboard == true) {\n      $(document).keydown(function(e) {\n        var tag = e.target.tagName.toLowerCase();\n\n        if (!$(\"body\").hasClass(\"disabled-onepage-scroll\")) {\n          switch(e.which) {\n            case 38:\n              if (tag != 'input' && tag != 'textarea') el.moveUp()\n            break;\n            case 40:\n              if (tag != 'input' && tag != 'textarea') el.moveDown()\n            break;\n            case 32: //spacebar\n              if (tag != 'input' && tag != 'textarea') el.moveDown()\n            break;\n            case 33: //pageg up\n              if (tag != 'input' && tag != 'textarea') el.moveUp()\n            break;\n            case 34: //page dwn\n              if (tag != 'input' && tag != 'textarea') el.moveDown()\n            break;\n            case 36: //home\n              el.moveTo(1);\n            break;\n            case 35: //end\n              el.moveTo(total);\n            break;\n            default: return;\n          }\n        }\n\n      });\n    }\n    return false;\n  }\n\n\n}(window.jQuery);\n"
  },
  {
    "path": "Demo/onepage-scroll.css",
    "content": "body, html {\n  margin: 0;\n  overflow: hidden;\n  -webkit-transition: opacity 400ms;\n  -moz-transition: opacity 400ms;\n  transition: opacity 400ms;\n}\n\nbody, .onepage-wrapper, html {\n  display: block;\n  position: static;\n  padding: 0;\n  width: 100%;\n  height: 100%;\n}\n\n.onepage-wrapper {\n  width: 100%;\n  height: 100%;\n  display: block;\n  position: relative;\n  padding: 0;\n  -webkit-transform-style: preserve-3d;\n}\n\n.onepage-wrapper .section {\n  width: 100%;\n  height: 100%;\n}\n\n.onepage-pagination {\n  position: absolute;\n  right: 10px;\n  top: 50%;\n  z-index: 5;\n  list-style: none;\n  margin: 0;\n  padding: 0;\n}\n.onepage-pagination li {\n  padding: 0;\n  text-align: center;\n}\n.onepage-pagination li a{\n  padding: 10px;\n  width: 4px;\n  height: 4px;\n  display: block;\n  \n}\n.onepage-pagination li a:before{\n  content: '';\n  position: absolute;\n  width: 4px;\n  height: 4px;\n  background: rgba(0,0,0,0.85);\n  border-radius: 10px;\n  -webkit-border-radius: 10px;\n  -moz-border-radius: 10px;\n}\n\n.onepage-pagination li a.active:before{\n  width: 10px;\n  height: 10px;\n  background: none;\n  border: 1px solid black;\n  margin-top: -4px;\n  left: 8px;\n}\n\n.disabled-onepage-scroll, .disabled-onepage-scroll .wrapper {\n  overflow: auto;\n}\n\n.disabled-onepage-scroll .onepage-wrapper .section {\n  position: relative !important;\n  top: auto !important;\n  left: auto !important;\n}\n.disabled-onepage-scroll .onepage-wrapper {\n  -webkit-transform: none !important;\n  -moz-transform: none !important;\n  transform: none !important;\n  -ms-transform: none !important;\n  min-height: 100%;\n}\n\n\n.disabled-onepage-scroll .onepage-pagination {\n  display: none;\n}\n\nbody.disabled-onepage-scroll, .disabled-onepage-scroll .onepage-wrapper, html {\n  position: inherit;\n}"
  },
  {
    "path": "README.md",
    "content": "#One Page Scroll 1.3.1 by Pete R.\nCreate an Apple-like one page scroll website (iPhone 5S website) with One Page Scroll plugin\nCreated by [Pete R.](http://www.thepetedesign.com), Founder of [BucketListly](http://www.bucketlistly.com)\n\nLicense: [Attribution-ShareAlike 4.0 International](http://creativecommons.org/licenses/by-sa/4.0/deed.en_US)\n\n\n## Requirement\n\njQuery (1.9.0 or later)\n\nnote: jQuery 1.9.0 or later is strongly recommended because using jQuery less than 1.8.3 and jquery.onepage-scroll.js together turns out to be a hash-based XSS vulnerabiliry.\n\nsee: http://jsfiddle.net/33WJx/\n\n## Demo\n[View demo](http://peachananr.github.io/onepage-scroll/Demo/demo.html)\n\n## Compatibility\nModern browsers such as Chrome, Firefox, and Safari on both desktop and smartphones have been tested. Should work fine on IE8 and IE9 as well.\n\n## Basic Usage\nOne Page Scroll let you transform your website into a one page scroll website that allows users to scroll one page at a time. It is perfect for creating a website in which you want to present something to the viewers. For example, [Apple's iPhone 5S website](http://www.apple.com/iphone-5s/) uses the same technique.\n\n\nTo add this to your website, simply include the latest jQuery library together with `jquery.onepage-scroll.js`, `onepage-scroll.css` into your document's `<head>` and call the function as follows:\n\n````html\n<body>\n  ...\n  <div class=\"main\">\n    <section>...</section>\n    <section>...</section>\n    ...\n  </div>\n  ...\n</body>\n````\nContainer \"Main\" must be one level below the `body` tag in order to make it work full page. Now call the function to activate as follows:\n\n````javascript\n$(\".main\").onepage_scroll({\n   sectionContainer: \"section\",     // sectionContainer accepts any kind of selector in case you don't want to use section\n   easing: \"ease\",                  // Easing options accepts the CSS3 easing animation such \"ease\", \"linear\", \"ease-in\",\n                                    // \"ease-out\", \"ease-in-out\", or even cubic bezier value such as \"cubic-bezier(0.175, 0.885, 0.420, 1.310)\"\n   animationTime: 1000,             // AnimationTime let you define how long each section takes to animate\n   pagination: true,                // You can either show or hide the pagination. Toggle true for show, false for hide.\n   updateURL: false,                // Toggle this true if you want the URL to be updated automatically when the user scroll to each page.\n   beforeMove: function(index) {},  // This option accepts a callback function. The function will be called before the page moves.\n   afterMove: function(index) {},   // This option accepts a callback function. The function will be called after the page moves.\n   loop: false,                     // You can have the page loop back to the top/bottom when the user navigates at up/down on the first/last page.\n   keyboard: true,                  // You can activate the keyboard controls\n   responsiveFallback: false,        // You can fallback to normal page scroll by defining the width of the browser in which\n                                    // you want the responsive fallback to be triggered. For example, set this to 600 and whenever\n                                    // the browser's width is less than 600, the fallback will kick in.\n   direction: \"vertical\"            // You can now define the direction of the One Page Scroll animation. Options available are \"vertical\" and \"horizontal\". The default value is \"vertical\".  \n});\n````\nAnd that's it. Now, your website should work the same way Apple's iPhone 5S website does. You should be able to swipe up/down as well (thanks to [Eike Send](https://github.com/eikes) for his swipe events!) when viewing your website on mobile phones.\n\n## Keyboard Shortcuts\nYou can trigger page move with hotkeys as well:\n\n### Up arrow / Page Up\nPressing the up arrow or the page up key allows you to move the page up by one.\n\n\n### Down arrow / Page Donw\nPressing the down arrow or the page down key allows you to move the page down by one.\n\n### Spacebar\nPressing the space key allows you to move the page down by one.\n\n### Home\nPressing the home key brings you back to the first page.\n\n\n### End\nPressing the end key brings you to the last page.\n\n## Public Methods\nYou can also trigger page move programmatically as well:\n\n### $.fn.moveUp()\nThis method allows you to move the page up by one. This action is equivalent to scrolling up/swiping down.\n\n````javascript\n  $(\".main\").moveUp();\n````\n\n### $.fn.moveDown()\nThis method allows you to move the page down by one. This action is equivalent to scrolling down/swiping up.\n\n````javascript\n  $(\".main\").moveDown();\n````\n\n### $.fn.moveTo(page_index)\nThis method allows you to move to the specified page index programatically.\n\n````javascript\n  $(\".main\").moveTo(3);\n````\n\n## Callbacks\nYou can use callbacks to perform actions before or after the page move.\n\n### beforeMove(current_page_index)\nThis callback gets called before the plugin performs its move.\n\n````javascript\n  $(\".main\").onepage_scroll({\n    beforeMove: function(index) {\n      ...\n    }\n  });\n````\n\n### afterMove(next_page_index)\nThis callback gets called after the move animation was performed.\n\n````javascript\n  $(\".main\").onepage_scroll({\n    afterMove: function(index) {\n      ...\n    }\n  });\n````\n\nIf you want to see more of my plugins, visit [The Pete Design](http://www.thepetedesign.com/#design), or follow me on [Twitter](http://www.twitter.com/peachananr) and [Github](http://www.github.com/peachananr).\n\n## Other Resources\n- [OnePageScroll.js: Creating an Apple’s iPhone 5S Website](http://www.onextrapixel.com/2013/09/18/onepagescroll-js-creating-an-apples-iphone-5s-website/)\n- [Eike Send's jQuery Swipe Events](https://github.com/eikes/jquery.swipe-events.js)\n- [CSS Easing generator by Matthew Lein](http://matthewlein.com/ceaser/)\n"
  },
  {
    "path": "_config.yml",
    "content": "theme: jekyll-theme-cayman"
  },
  {
    "path": "bower.json",
    "content": "{\n  \"name\": \"onepage-scroll\",\n  \"version\": \"1.3.1\",\n  \"author\": \"Pete R\",\n  \"main\": [\n    \"jquery.onepage-scroll.js\",\n    \"onepage-scroll.css\"\n  ],\n  \"ignore\": [\n    \"Demo\",\n    \"README.md\"\n  ],\n  \"dependencies\": {\n    \"jquery\": \"~1.10.2\"\n  }\n}\n"
  },
  {
    "path": "jquery.onepage-scroll.js",
    "content": "/* ===========================================================\n * jquery-onepage-scroll.js v1.3.1\n * ===========================================================\n * Copyright 2013 Pete Rojwongsuriya.\n * http://www.thepetedesign.com\n *\n * Create an Apple-like website that let user scroll\n * one page at a time\n *\n * Credit: Eike Send for the awesome swipe event\n * https://github.com/peachananr/onepage-scroll\n *\n * License: GPL v3\n *\n * ========================================================== */\n\n!function($){\n\n  var defaults = {\n    sectionContainer: \"section\",\n    easing: \"ease\",\n    animationTime: 1000,\n    pagination: true,\n    updateURL: false,\n    keyboard: true,\n    beforeMove: null,\n    afterMove: null,\n    loop: true,\n    responsiveFallback: false,\n    direction : 'vertical'\n\t};\n\n\t/*------------------------------------------------*/\n\t/*  Credit: Eike Send for the awesome swipe event */\n\t/*------------------------------------------------*/\n\n\t$.fn.swipeEvents = function() {\n      return this.each(function() {\n\n        var startX,\n            startY,\n            $this = $(this);\n\n        $this.bind('touchstart', touchstart);\n\n        function touchstart(event) {\n          var touches = event.originalEvent.touches;\n          if (touches && touches.length) {\n            startX = touches[0].pageX;\n            startY = touches[0].pageY;\n            $this.bind('touchmove', touchmove);\n          }\n        }\n\n        function touchmove(event) {\n          var touches = event.originalEvent.touches;\n          if (touches && touches.length) {\n            var deltaX = startX - touches[0].pageX;\n            var deltaY = startY - touches[0].pageY;\n\n            if (deltaX >= 50) {\n              $this.trigger(\"swipeLeft\");\n            }\n            if (deltaX <= -50) {\n              $this.trigger(\"swipeRight\");\n            }\n            if (deltaY >= 50) {\n              $this.trigger(\"swipeUp\");\n            }\n            if (deltaY <= -50) {\n              $this.trigger(\"swipeDown\");\n            }\n            if (Math.abs(deltaX) >= 50 || Math.abs(deltaY) >= 50) {\n              $this.unbind('touchmove', touchmove);\n            }\n          }\n        }\n\n      });\n    };\n\n\n  $.fn.onepage_scroll = function(options){\n    var settings = $.extend({}, defaults, options),\n        el = $(this),\n        sections = $(settings.sectionContainer)\n        total = sections.length,\n        status = \"off\",\n        topPos = 0,\n        leftPos = 0,\n        lastAnimation = 0,\n        quietPeriod = 500,\n        paginationList = \"\";\n\n    $.fn.transformPage = function(settings, pos, index) {\n      if (typeof settings.beforeMove == 'function') settings.beforeMove(index);\n\n      // Just a simple edit that makes use of modernizr to detect an IE8 browser and changes the transform method into\n    \t// an top animate so IE8 users can also use this script.\n    \tif($('html').hasClass('ie8')){\n        if (settings.direction == 'horizontal') {\n          var toppos = (el.width()/100)*pos;\n          $(this).animate({left: toppos+'px'},settings.animationTime);\n        } else {\n          var toppos = (el.height()/100)*pos;\n          $(this).animate({top: toppos+'px'},settings.animationTime);\n        }\n    \t} else{\n    \t  $(this).css({\n    \t    \"-webkit-transform\": ( settings.direction == 'horizontal' ) ? \"translate3d(\" + pos + \"%, 0, 0)\" : \"translate3d(0, \" + pos + \"%, 0)\",\n         \"-webkit-transition\": \"all \" + settings.animationTime + \"ms \" + settings.easing,\n         \"-moz-transform\": ( settings.direction == 'horizontal' ) ? \"translate3d(\" + pos + \"%, 0, 0)\" : \"translate3d(0, \" + pos + \"%, 0)\",\n         \"-moz-transition\": \"all \" + settings.animationTime + \"ms \" + settings.easing,\n         \"-ms-transform\": ( settings.direction == 'horizontal' ) ? \"translate3d(\" + pos + \"%, 0, 0)\" : \"translate3d(0, \" + pos + \"%, 0)\",\n         \"-ms-transition\": \"all \" + settings.animationTime + \"ms \" + settings.easing,\n         \"transform\": ( settings.direction == 'horizontal' ) ? \"translate3d(\" + pos + \"%, 0, 0)\" : \"translate3d(0, \" + pos + \"%, 0)\",\n         \"transition\": \"all \" + settings.animationTime + \"ms \" + settings.easing\n    \t  });\n    \t}\n      $(this).one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function(e) {\n        if (typeof settings.afterMove == 'function') settings.afterMove(index);\n      });\n    }\n\n    $.fn.moveDown = function() {\n      var el = $(this)\n      index = $(settings.sectionContainer +\".active\").data(\"index\");\n      current = $(settings.sectionContainer + \"[data-index='\" + index + \"']\");\n      next = $(settings.sectionContainer + \"[data-index='\" + (index + 1) + \"']\");\n      if(next.length < 1) {\n        if (settings.loop == true) {\n          pos = 0;\n          next = $(settings.sectionContainer + \"[data-index='1']\");\n        } else {\n          return\n        }\n\n      }else {\n        pos = (index * 100) * -1;\n      }\n      if (typeof settings.beforeMove == 'function') settings.beforeMove( next.data(\"index\"));\n      current.removeClass(\"active\")\n      next.addClass(\"active\");\n      if(settings.pagination == true) {\n        $(\".onepage-pagination li a\" + \"[data-index='\" + index + \"']\").removeClass(\"active\");\n        $(\".onepage-pagination li a\" + \"[data-index='\" + next.data(\"index\") + \"']\").addClass(\"active\");\n      }\n\n      $(\"body\")[0].className = $(\"body\")[0].className.replace(/\\bviewing-page-\\d.*?\\b/g, '');\n      $(\"body\").addClass(\"viewing-page-\"+next.data(\"index\"))\n\n      if (history.replaceState && settings.updateURL == true) {\n        var href = window.location.href.substr(0,window.location.href.indexOf('#')) + \"#\" + (index + 1);\n        history.pushState( {}, document.title, href );\n      }\n      el.transformPage(settings, pos, next.data(\"index\"));\n    }\n\n    $.fn.moveUp = function() {\n      var el = $(this)\n      index = $(settings.sectionContainer +\".active\").data(\"index\");\n      current = $(settings.sectionContainer + \"[data-index='\" + index + \"']\");\n      next = $(settings.sectionContainer + \"[data-index='\" + (index - 1) + \"']\");\n\n      if(next.length < 1) {\n        if (settings.loop == true) {\n          pos = ((total - 1) * 100) * -1;\n          next = $(settings.sectionContainer + \"[data-index='\"+total+\"']\");\n        }\n        else {\n          return\n        }\n      }else {\n        pos = ((next.data(\"index\") - 1) * 100) * -1;\n      }\n      if (typeof settings.beforeMove == 'function') settings.beforeMove(next.data(\"index\"));\n      current.removeClass(\"active\")\n      next.addClass(\"active\")\n      if(settings.pagination == true) {\n        $(\".onepage-pagination li a\" + \"[data-index='\" + index + \"']\").removeClass(\"active\");\n        $(\".onepage-pagination li a\" + \"[data-index='\" + next.data(\"index\") + \"']\").addClass(\"active\");\n      }\n      $(\"body\")[0].className = $(\"body\")[0].className.replace(/\\bviewing-page-\\d.*?\\b/g, '');\n      $(\"body\").addClass(\"viewing-page-\"+next.data(\"index\"))\n\n      if (history.replaceState && settings.updateURL == true) {\n        var href = window.location.href.substr(0,window.location.href.indexOf('#')) + \"#\" + (index - 1);\n        history.pushState( {}, document.title, href );\n      }\n      el.transformPage(settings, pos, next.data(\"index\"));\n    }\n\n    $.fn.moveTo = function(page_index) {\n      current = $(settings.sectionContainer + \".active\")\n      next = $(settings.sectionContainer + \"[data-index='\" + (page_index) + \"']\");\n      if(next.length > 0) {\n        if (typeof settings.beforeMove == 'function') settings.beforeMove(next.data(\"index\"));\n        current.removeClass(\"active\")\n        next.addClass(\"active\")\n        $(\".onepage-pagination li a\" + \".active\").removeClass(\"active\");\n        $(\".onepage-pagination li a\" + \"[data-index='\" + (page_index) + \"']\").addClass(\"active\");\n        $(\"body\")[0].className = $(\"body\")[0].className.replace(/\\bviewing-page-\\d.*?\\b/g, '');\n        $(\"body\").addClass(\"viewing-page-\"+next.data(\"index\"))\n\n        pos = ((page_index - 1) * 100) * -1;\n\n        if (history.replaceState && settings.updateURL == true) {\n            var href = window.location.href.substr(0,window.location.href.indexOf('#')) + \"#\" + (page_index - 1);\n            history.pushState( {}, document.title, href );\n        }\n        el.transformPage(settings, pos, page_index);\n      }\n    }\n\n    function responsive() {\n      //start modification\n      var valForTest = false;\n      var typeOfRF = typeof settings.responsiveFallback\n\n      if(typeOfRF == \"number\"){\n      \tvalForTest = $(window).width() < settings.responsiveFallback;\n      }\n      if(typeOfRF == \"boolean\"){\n      \tvalForTest = settings.responsiveFallback;\n      }\n      if(typeOfRF == \"function\"){\n      \tvalFunction = settings.responsiveFallback();\n      \tvalForTest = valFunction;\n      \ttypeOFv = typeof valForTest;\n      \tif(typeOFv == \"number\"){\n      \t\tvalForTest = $(window).width() < valFunction;\n      \t}\n      }\n\n      //end modification\n      if (valForTest) {\n        $(\"body\").addClass(\"disabled-onepage-scroll\");\n        $(document).unbind('mousewheel DOMMouseScroll MozMousePixelScroll');\n        el.swipeEvents().unbind(\"swipeDown swipeUp\");\n      } else {\n        if($(\"body\").hasClass(\"disabled-onepage-scroll\")) {\n          $(\"body\").removeClass(\"disabled-onepage-scroll\");\n          $(\"html, body, .wrapper\").animate({ scrollTop: 0 }, \"fast\");\n        }\n\n\n        el.swipeEvents().bind(\"swipeDown\",  function(event){\n          if (!$(\"body\").hasClass(\"disabled-onepage-scroll\")) event.preventDefault();\n          el.moveUp();\n        }).bind(\"swipeUp\", function(event){\n          if (!$(\"body\").hasClass(\"disabled-onepage-scroll\")) event.preventDefault();\n          el.moveDown();\n        });\n\n        $(document).bind('mousewheel DOMMouseScroll MozMousePixelScroll', function(event) {\n          event.preventDefault();\n          var delta = event.originalEvent.wheelDelta || -event.originalEvent.detail;\n          init_scroll(event, delta);\n        });\n      }\n    }\n\n\n    function init_scroll(event, delta) {\n        deltaOfInterest = delta;\n        var timeNow = new Date().getTime();\n        // Cancel scroll if currently animating or within quiet period\n        if(timeNow - lastAnimation < quietPeriod + settings.animationTime) {\n            event.preventDefault();\n            return;\n        }\n\n        if (deltaOfInterest < 0) {\n          el.moveDown()\n        } else {\n          el.moveUp()\n        }\n        lastAnimation = timeNow;\n    }\n\n    // Prepare everything before binding wheel scroll\n\n    el.addClass(\"onepage-wrapper\").css(\"position\",\"relative\");\n    $.each( sections, function(i) {\n      $(this).css({\n        position: \"absolute\",\n        top: topPos + \"%\"\n      }).addClass(\"section\").attr(\"data-index\", i+1);\n\n\n      $(this).css({\n        position: \"absolute\",\n        left: ( settings.direction == 'horizontal' )\n          ? leftPos + \"%\"\n          : 0,\n        top: ( settings.direction == 'vertical' || settings.direction != 'horizontal' )\n          ? topPos + \"%\"\n          : 0\n      });\n\n      if (settings.direction == 'horizontal')\n        leftPos = leftPos + 100;\n      else\n        topPos = topPos + 100;\n\n\n      if(settings.pagination == true) {\n        paginationList += \"<li><a data-index='\"+(i+1)+\"' href='#\" + (i+1) + \"'></a></li>\"\n      }\n    });\n\n    el.swipeEvents().bind(\"swipeDown\",  function(event){\n      if (!$(\"body\").hasClass(\"disabled-onepage-scroll\")) event.preventDefault();\n      el.moveUp();\n    }).bind(\"swipeUp\", function(event){\n      if (!$(\"body\").hasClass(\"disabled-onepage-scroll\")) event.preventDefault();\n      el.moveDown();\n    });\n\n    // Create Pagination and Display Them\n    if (settings.pagination == true) {\n      if ($('ul.onepage-pagination').length < 1) $(\"<ul class='onepage-pagination'></ul>\").prependTo(\"body\");\n\n      if( settings.direction == 'horizontal' ) {\n        posLeft = (el.find(\".onepage-pagination\").width() / 2) * -1;\n        el.find(\".onepage-pagination\").css(\"margin-left\", posLeft);\n      } else {\n        posTop = (el.find(\".onepage-pagination\").height() / 2) * -1;\n        el.find(\".onepage-pagination\").css(\"margin-top\", posTop);\n      }\n      $('ul.onepage-pagination').html(paginationList);\n    }\n\n    if(window.location.hash != \"\" && window.location.hash != \"#1\") {\n      init_index =  window.location.hash.replace(\"#\", \"\")\n\n      if (parseInt(init_index) <= total && parseInt(init_index) > 0) {\n        $(settings.sectionContainer + \"[data-index='\" + init_index + \"']\").addClass(\"active\")\n        $(\"body\").addClass(\"viewing-page-\"+ init_index)\n        if(settings.pagination == true) $(\".onepage-pagination li a\" + \"[data-index='\" + init_index + \"']\").addClass(\"active\");\n\n        next = $(settings.sectionContainer + \"[data-index='\" + (init_index) + \"']\");\n        if(next) {\n          next.addClass(\"active\")\n          if(settings.pagination == true) $(\".onepage-pagination li a\" + \"[data-index='\" + (init_index) + \"']\").addClass(\"active\");\n          $(\"body\")[0].className = $(\"body\")[0].className.replace(/\\bviewing-page-\\d.*?\\b/g, '');\n          $(\"body\").addClass(\"viewing-page-\"+next.data(\"index\"))\n          if (history.replaceState && settings.updateURL == true) {\n            var href = window.location.href.substr(0,window.location.href.indexOf('#')) + \"#\" + (init_index);\n            history.pushState( {}, document.title, href );\n          }\n        }\n        pos = ((init_index - 1) * 100) * -1;\n        el.transformPage(settings, pos, init_index);\n      } else {\n        $(settings.sectionContainer + \"[data-index='1']\").addClass(\"active\")\n        $(\"body\").addClass(\"viewing-page-1\")\n        if(settings.pagination == true) $(\".onepage-pagination li a\" + \"[data-index='1']\").addClass(\"active\");\n      }\n    }else{\n      $(settings.sectionContainer + \"[data-index='1']\").addClass(\"active\")\n      $(\"body\").addClass(\"viewing-page-1\")\n      if(settings.pagination == true) $(\".onepage-pagination li a\" + \"[data-index='1']\").addClass(\"active\");\n    }\n\n    if(settings.pagination == true)  {\n      $(\".onepage-pagination li a\").click(function (){\n        var page_index = $(this).data(\"index\");\n        el.moveTo(page_index);\n      });\n    }\n\n\n    $(document).bind('mousewheel DOMMouseScroll MozMousePixelScroll', function(event) {\n      event.preventDefault();\n      var delta = event.originalEvent.wheelDelta || -event.originalEvent.detail;\n      if(!$(\"body\").hasClass(\"disabled-onepage-scroll\")) init_scroll(event, delta);\n    });\n\n\n    if(settings.responsiveFallback != false) {\n      $(window).resize(function() {\n        responsive();\n      });\n\n      responsive();\n    }\n\n    if(settings.keyboard == true) {\n      $(document).keydown(function(e) {\n        var tag = e.target.tagName.toLowerCase();\n\n        if (!$(\"body\").hasClass(\"disabled-onepage-scroll\")) {\n          switch(e.which) {\n            case 38:\n              if (tag != 'input' && tag != 'textarea') el.moveUp()\n            break;\n            case 40:\n              if (tag != 'input' && tag != 'textarea') el.moveDown()\n            break;\n            case 32: //spacebar\n              if (tag != 'input' && tag != 'textarea') el.moveDown()\n            break;\n            case 33: //pageg up\n              if (tag != 'input' && tag != 'textarea') el.moveUp()\n            break;\n            case 34: //page dwn\n              if (tag != 'input' && tag != 'textarea') el.moveDown()\n            break;\n            case 36: //home\n              el.moveTo(1);\n            break;\n            case 35: //end\n              el.moveTo(total);\n            break;\n            default: return;\n          }\n        }\n\n      });\n    }\n    return false;\n  }\n\n\n}(window.jQuery);\n"
  },
  {
    "path": "onepage-scroll.css",
    "content": "body, html {\n  margin: 0;\n  overflow: hidden;\n  -webkit-transition: opacity 400ms;\n  -moz-transition: opacity 400ms;\n  transition: opacity 400ms;\n}\n\nbody, .onepage-wrapper, html {\n  display: block;\n  position: static;\n  padding: 0;\n  width: 100%;\n  height: 100%;\n}\n\n.onepage-wrapper {\n  width: 100%;\n  height: 100%;\n  display: block;\n  position: relative;\n  padding: 0;\n  -webkit-transform-style: preserve-3d;\n}\n\n.onepage-wrapper .section {\n  width: 100%;\n  height: 100%;\n}\n\n.onepage-pagination {\n  position: absolute;\n  right: 10px;\n  top: 50%;\n  z-index: 5;\n  list-style: none;\n  margin: 0;\n  padding: 0;\n}\n.onepage-pagination li {\n  padding: 0;\n  text-align: center;\n}\n.onepage-pagination li a{\n  padding: 10px;\n  width: 4px;\n  height: 4px;\n  display: block;\n  \n}\n.onepage-pagination li a:before{\n  content: '';\n  position: absolute;\n  width: 4px;\n  height: 4px;\n  background: rgba(0,0,0,0.85);\n  border-radius: 10px;\n  -webkit-border-radius: 10px;\n  -moz-border-radius: 10px;\n}\n\n.onepage-pagination li a.active:before{\n  width: 10px;\n  height: 10px;\n  background: none;\n  border: 1px solid black;\n  margin-top: -4px;\n  left: 8px;\n}\n\n.disabled-onepage-scroll, .disabled-onepage-scroll .wrapper {\n  overflow: auto;\n}\n\n.disabled-onepage-scroll .onepage-wrapper .section {\n  position: relative !important;\n  top: auto !important;\n  left: auto !important;\n}\n.disabled-onepage-scroll .onepage-wrapper {\n  -webkit-transform: none !important;\n  -moz-transform: none !important;\n  transform: none !important;\n  -ms-transform: none !important;\n  min-height: 100%;\n}\n\n\n.disabled-onepage-scroll .onepage-pagination {\n  display: none;\n}\n\nbody.disabled-onepage-scroll, .disabled-onepage-scroll .onepage-wrapper, html {\n  position: inherit;\n}"
  }
]