This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="offmenu"> | |
<ul> | |
<li>aaa</li> | |
<li>aaa</li> | |
<li>aaa</li> | |
<li>aaa</li> | |
</ul> | |
</div> | |
<i id="push" class="fa fa-bars"></i> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Reset CSS | |
* --------------------------------------- */ | |
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre, | |
form,fieldset,input,textarea,p,blockquote,th,td { | |
padding: 0; | |
margin: 0; | |
} | |
a{ | |
text-decoration:none; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.requestAnimFrame = function(){ | |
return window.requestAnimationFrame || function(callback){ callback() } | |
}(); | |
//usage | |
requestAnimFrame(function(){ | |
//do whatever | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var data ={}; | |
var self ={}; | |
for(var key in data) { | |
if(!self.hasOwnProperty(key)) { | |
self[key] = data[key]; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function User(userData) { | |
userData = userData || {}; | |
this.name = ko.observable(userData.name); | |
//copying all non existent properties | |
for(var key in userData) { | |
if(!self.hasOwnProperty(key)) { | |
self[key] = userData[key]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!-- | |
IE5 default style sheet, provides a view of any XML document | |
and provides the following features: | |
- auto-indenting of the display, expanding of entity references | |
- click or tab/return to expand/collapse | |
- color coding of markup | |
- color coding of recognized namespaces - xml, xmlns, xsl, dt | |
This style sheet is available in IE5 in a compact form at the URL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!-- | |
IE5 default style sheet, provides a view of any XML document | |
and provides the following features: | |
- auto-indenting of the display, expanding of entity references | |
- click or tab/return to expand/collapse | |
- color coding of markup | |
- color coding of recognized namespaces - xml, xmlns, xsl, dt | |
This style sheet is available in IE5 in a compact form at the URL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
$('#fullpage').fullpage({ | |
autoScrolling: false, | |
fitToSection: false | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// We only want the iScroll to translate on touch devices. | |
// On overscroll, at least on iPhone, it seems to trigger a window | |
// scroll event which allows moving to the next section. | |
// If that doesn't happen, we would need to incorporate iscroll-probe | |
// to get access to the onscroll event and do our own determining of | |
// whether or not to move to the next fullpage section. | |
var iscrollOptions = { | |
disableMouse: true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="pagepiling"> | |
<div class="section">Some section</div> | |
<div class="section">Some section</div> | |
<div class="section">Some section</div> | |
<div class="section">Some section</div> | |
</div> |
OlderNewer