Permalink
Browse files

removed share buttons

  • Loading branch information...
1 parent c944ac3 commit 5dbba8d7e4da542896f0ade11909a7bc66ac1925 @lizhepro committed Jul 16, 2012
Showing with 2 additions and 72 deletions.
  1. +0 −42 public/javascripts/client.js
  2. +1 −5 public/stylesheets/style.css
  3. +1 −4 public/stylesheets/style.styl
  4. +0 −21 views/index.jade
@@ -220,46 +220,4 @@ $(document).ready(function() {
}
$('#navigation-content').empty().append(frag);
};
-
- //根据用户的地区加载social share buttons
- var userLanguage = navigator.userLanguage || navigator.language || 'en';
- if(userLanguage.indexOf('en') != -1) {
- gplusDiv = $('<div />');
- gplusDiv.addClass('g-plusone')
- .attr('data-size', 'medium');
- (function() {
- var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
- po.src = 'https://apis.google.com/js/plusone.js';
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
- })();
-
- twitterIframe = $('<iframe />');
- twitterIframe.attr({
- src: 'https://platform.twitter.com/widgets/tweet_button.1340179658.html#_=1342285864031&amp;count=horizontal&amp;id=twitter-widget-108&amp;lang=en&amp;original_referer=https%3A%2F%2Ftwitter.com%2Fabout%2Fresources%2Fbuttons%23tweet&amp;size=m&amp;text=NodejsAPI&amp;url=http%3A%2F%2Fnodejsapi.cloudfoundry.com%2F',
- scrolling: 'no',
- frameborder: 0,
- title: 'Twitter Tweet Button'
- }).css({
- border: 'none',
- overflow: 'hidden',
- width: '106px',
- height: '20px',
- allowTransparency: true
- }).addClass('twitter-share-button twitter-count-horizontal');
-
- fbIframe = $('<iframe />');
- fbIframe.attr({
- src: '//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fnodejsapi.cloudfoundry.com%2F&amp;send=false&amp;layout=button_count&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21"',
- scrolling: 'no',
- frameborder: 0,
- layout: 'button_count'
- }).css({
- border: 'none',
- overflow: 'hidden',
- width: '250px',
- height: '24px',
- allowTransparency: true
- });
- $('div.share').append(gplusDiv).append(twitterIframe).append(fbIframe);
- }
});
@@ -10,12 +10,8 @@ body {
text-align: center;
font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif;
}
-.share {
- margin: 0 auto;
- width: 580px;
-}
.show-grid {
- margin: 18px 20px;
+ margin: 20px;
}
.search {
text-align: center;
@@ -17,11 +17,8 @@ body
.title
text-align: center
font-family: font
-.share
- margin: 0 auto;
- width: contentWidth;
.show-grid
- margin: 18px 20px
+ margin: 20px
.search
text-align: center
#searchinput
View
@@ -1,27 +1,6 @@
.main
.title.show-grid
h1 Nodejs API
- .share
- script(type='text/javascript', charset='utf-8')
- (function(){
- var _w = 90 , _h = 24;
- var param = {
- url:location.href,
- type:'2',
- count:'1', /**是否显示分享数,1显示(可选)*/
- appkey:'', /**您申请的应用appkey,显示分享来源(可选)*/
- title:'', /**分享的文字内容(可选,默认为所在页面的title)*/
- pic:'', /**分享图片的路径(可选)*/
- ralateUid:'2826902417', /**关联用户的UID,分享微博会@该用户(可选)*/
- language:'zh_cn', /**设置语言,zh_cn|zh_tw(可选)*/
- rnd:new Date().valueOf()
- }
- var temp = [];
- for( var p in param ){
- temp.push(p + '=' + encodeURIComponent( param[p] || '' ) )
- }
- document.write('<iframe allowTransparency="true" frameborder="0" scrolling="no" src="http://hits.sinajs.cn/A1/weiboshare.html?' + temp.join('&') + '" width="'+ _w+'" height="'+_h+'"></iframe>')
- })();
.search.show-grid
<input id='searchinput' type='text' data-provide='typeahead' placeholder='type whatever u like' autocomplete='off' />
div.content.show-grid

0 comments on commit 5dbba8d

Please sign in to comment.