You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.6 KiB
43 lines
1.6 KiB
11 years ago
|
<script src="{{ root_url }}/javascripts/modernizr-2.0.js"></script>
|
||
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
||
|
<script>!window.jQuery && document.write(unescape('%3Cscript src="/javascripts/libs/jquery.min.js"%3E%3C/script%3E'))</script>
|
||
|
<script src="{{ root_url }}/javascripts/libs/respond.js" type="text/javascript"></script>
|
||
|
<script src="{{ root_url }}/javascripts/octopress.js" type="text/javascript"></script>
|
||
|
{% if site.github_user %}
|
||
|
<script src="{{ root_url }}/javascripts/github.js" type="text/javascript"> </script>
|
||
|
<script type="text/javascript">
|
||
|
$(document).ready(function(){
|
||
|
if (!window.jXHR){
|
||
|
var jxhr = document.createElement('script');
|
||
|
jxhr.type = 'text/javascript';
|
||
|
jxhr.src = '{{ root_url}}/javascripts/libs/jXHR.js';
|
||
|
var s = document.getElementsByTagName('script')[0];
|
||
|
s.parentNode.insertBefore(jxhr, s);
|
||
|
}
|
||
|
|
||
|
github.showRepos({
|
||
|
user: '{{site.github_user}}',
|
||
|
count: {{site.github_repo_count}},
|
||
|
skip_forks: {{site.github_skip_forks}},
|
||
|
target: '#gh_repos'
|
||
|
});
|
||
|
});
|
||
|
</script>
|
||
|
{% endif %}
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
$(document).ready(function(){
|
||
|
var userAgent = navigator.userAgent.toLowerCase();
|
||
|
var isiPhone = (userAgent.indexOf('iphone') != -1 || userAgent.indexOf('ipod') != -1) ? true : false;
|
||
|
var isAndroid = (userAgent.indexOf('android') != -1) ? true : false;
|
||
|
clickEvent = (isiPhone || isAndroid) ? 'touchstart' : 'click';
|
||
|
$('#sidebar').on(clickEvent, function() {
|
||
|
$(this).toggleClass('open');
|
||
|
});
|
||
|
$('.articlemeta').on(clickEvent, function() {
|
||
|
toggleDisqus();
|
||
|
$(this).toggleClass('open');
|
||
|
});
|
||
|
});
|
||
|
</script>
|