Skip to content

Commit

Permalink
better demo copy, better install instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron committed Mar 12, 2014
1 parent e260963 commit 38ad08c
Show file tree
Hide file tree
Showing 13 changed files with 1,528 additions and 148 deletions.
2 changes: 1 addition & 1 deletion _layouts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<link rel="stylesheet" href="css/solo.css">
<link rel="stylesheet" href="css/io.css">

<!-- SQBM --><script>window.squirtBookmarklet = "javascript:(function(){if(window.sq){window.sq.closed&&document.dispatchEvent(new Event('squirt.again'));}else{window.sq={};window.sq.userId='--squirtUser--';s=document.createElement('script');s.src='https://www.squirt.io/bm/squirt.js';s.search=window.location.search;s.idx=s.search.indexOf('sq-dev');if(s.idx!=-1){s.ampIdx=s.search.indexOf('&');s.host=s.search.substring(s.idx+7,s.ampIdx==-1?s.search.length:s.ampIdx);console.log(s.host);s.src='https://'+(s.host?s.host:'localhost')+':4000/bm/squirt.js';}document.body.appendChild(s);}})();"</script><!-- SQBM -->
<!-- SQBM --><script>window.squirtBookmarklet = "javascript:(function(){if(window.sq){window.sq.closed&&document.dispatchEvent(new Event('squirt.again'));}else{window.sq={};window.sq.userId='--squirtUser--';s=document.createElement('script');s.src='http://www.squirt.io/bm/squirt.js';s.s=window.location.search;s.idx=s.s.indexOf('sq-dev');if(s.idx!=-1){s.ampIdx=s.s.indexOf('&');s.host=s.s.substring(s.idx+7,s.ampIdx==-1?s.s.length:s.ampIdx);s.src='http://'+(s.host?s.host:'localhost')+':4000/bm/squirt.js';}document.body.appendChild(s);}})();"</script><!-- SQBM -->
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</head>
<body>
Expand Down
12 changes: 6 additions & 6 deletions bm/bookmarklet.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
window.sq = {};
window.sq.userId = '--squirtUser--';
s = document.createElement('script');
s.src = '//www.squirt.io/bm/squirt.js';
s.search = window.location.search;
s.idx = s.search.indexOf('sq-dev');
s.src = 'http://www.squirt.io/bm/squirt.js';
s.s = window.location.search;
s.idx = s.s.indexOf('sq-dev');
if(s.idx != -1){
s.ampIdx = s.search.indexOf('&');
s.host = s.search.substring(s.idx + 7, s.ampIdx == -1 ? s.search.length : s.ampIdx);
s.src = '//' + (s.host ? s.host : 'localhost') + ':4000/bm/squirt.js';
s.ampIdx = s.s.indexOf('&');
s.host = s.s.substring(s.idx + 7, s.ampIdx == -1 ? s.s.length : s.ampIdx);
s.src = 'http://' + (s.host ? s.host : 'localhost') + ':4000/bm/squirt.js';
}
document.body.appendChild(s);
}
Expand Down
Loading

0 comments on commit 38ad08c

Please sign in to comment.