mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
Remove static github buttons and replace with iframe versions
This commit is contained in:
parent
4e6275d0fe
commit
ecc9764c83
@ -82,22 +82,11 @@
|
|||||||
<li><a href="https://github.com/twitter/bootstrap/wiki/Changelog">Changelog</a></li>
|
<li><a href="https://github.com/twitter/bootstrap/wiki/Changelog">Changelog</a></li>
|
||||||
<li class="divider">·</li>
|
<li class="divider">·</li>
|
||||||
<li>
|
<li>
|
||||||
<span class="github-btn github-watchers">
|
<iframe class="github-btn" src="http://markdotto.github.com/github-buttons/github-btn.html?user=twitter&repo=bootstrap&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="110px" height="20px"></iframe>
|
||||||
<a href="https://github.com/twitter/bootstrap" class="btn">
|
</li>
|
||||||
<img class="github-ico" src="assets/img/github-16px.png">
|
<li>
|
||||||
Watch
|
<iframe class="github-btn" src="http://markdotto.github.com/github-buttons/github-btn.html?user=twitter&repo=bootstrap&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="94px" height="20px"></iframe>
|
||||||
</a>
|
|
||||||
<span class="count"></span>
|
|
||||||
</span>
|
|
||||||
<span class="github-btn github-forks">
|
|
||||||
<a href="https://github.com/twitter/bootstrap" class="btn">
|
|
||||||
<img class="github-ico" src="assets/img/github-16px.png">
|
|
||||||
Fork
|
|
||||||
</a>
|
|
||||||
<span class="count"></span>
|
|
||||||
</span>
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
<li><strong>Authors</strong></li>
|
<li><strong>Authors</strong></li>
|
||||||
<li><a href="http://twitter.com/mdo">@mdo</a></li>
|
<li><a href="http://twitter.com/mdo">@mdo</a></li>
|
||||||
@ -190,23 +179,6 @@
|
|||||||
</div><!--/row-->
|
</div><!--/row-->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- <h3>Quick-start examples</h3>
|
|
||||||
<p>Need some quick templates? Check out these basic examples we've put together:</p>
|
|
||||||
<ul class="media-grid">
|
|
||||||
<li>
|
|
||||||
<a href="../examples/hero.html"><img src="assets/img/example-diagram-01.png" alt="Simple three-column layout with hero unit"></a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="../examples/fluid.html"><img src="assets/img/example-diagram-02.png" alt="Fluid layout with static sidebar"></a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="../examples/container-app.html"><img src="assets/img/example-diagram-03.png" alt="Simple hanging container for apps"></a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
-->
|
|
||||||
</div><!-- /#overview -->
|
</div><!-- /#overview -->
|
||||||
|
|
||||||
|
|
||||||
@ -232,41 +204,5 @@
|
|||||||
<script src="../js/bootstrap-scrollspy.js"></script>
|
<script src="../js/bootstrap-scrollspy.js"></script>
|
||||||
<script src="assets/js/application.js"></script>
|
<script src="assets/js/application.js"></script>
|
||||||
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
$(document).ready(function($){
|
|
||||||
|
|
||||||
function addCommas(nStr) {
|
|
||||||
nStr += '';
|
|
||||||
x = nStr.split('.');
|
|
||||||
x1 = x[0];
|
|
||||||
x2 = x.length > 1 ? '.' + x[1] : '';
|
|
||||||
var rgx = /(\d+)(\d{3})/;
|
|
||||||
while (rgx.test(x1)) {
|
|
||||||
x1 = x1.replace(rgx, '$1' + ',' + '$2');
|
|
||||||
}
|
|
||||||
return x1 + x2;
|
|
||||||
}
|
|
||||||
|
|
||||||
// GITHUB
|
|
||||||
window.repoCallback = function (obj) {
|
|
||||||
|
|
||||||
// Variables
|
|
||||||
var watchers = obj['repository']['watchers'];
|
|
||||||
var forks = obj['repository']['forks'];
|
|
||||||
|
|
||||||
// Echo out the counts in correct elements
|
|
||||||
$('.github-watchers .count').html(addCommas(watchers));
|
|
||||||
$('.github-forks .count').html(addCommas(forks));
|
|
||||||
|
|
||||||
// Debug log
|
|
||||||
// console.log("Watchers:" + watchers);
|
|
||||||
// console.log("Forks:" + forks);
|
|
||||||
}
|
|
||||||
$.ajax("http://github.com/api/v2/json/repos/show/twitter/bootstrap?callback=repoCallback", {dataType: "jsonp"});
|
|
||||||
});
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user