Permalink
Browse files

Use $.mobile.version for version ribbon

  • Loading branch information...
1 parent d6ea6b9 commit c64c1a4bd22519dec48f687f5cb2fc757c7dfb13 @gseguin gseguin committed Apr 19, 2012
Showing with 16 additions and 2 deletions.
  1. +1 −1 docs/_assets/css/jqm-docs.css
  2. +14 −0 docs/_assets/js/jqm-docs.js
  3. +1 −1 index.html
@@ -25,7 +25,7 @@ body { background: #dddddd; }
text-align: center;
text-shadow: 0 1px 1px #fff;
top: .75em;
- width: auto;
+ width: 78px;
z-index: 9;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
@@ -5,6 +5,20 @@ $(function(){
});
});
+// display the version of jQM
+$(function() {
+ var version = $.mobile.version || "dev",
+ words = version.split( "-" ),
+ ver = words[0],
+ str = (words[1] || "Final"),
+ html = ver;
+
+ str = str.charAt( 0 ).toUpperCase() + str.slice( 1 );
+ if ( $.mobile.version && str ) {
+ html += " <b>" + str + "</b>";
+ }
+ $( "p.jqm-version" ).html( html );
+})
// Turn off AJAX for local file browsing
if ( location.protocol.substr(0,4) === 'file' ||
View
@@ -14,7 +14,7 @@
<body>
<div data-role="page" class="type-home">
<div data-role="content">
- <p class="jqm-version">1.2.0 <b>Pre</b></p>
+ <p class="jqm-version"></p>
<div class="content-secondary">

1 comment on commit c64c1a4

Member

jaspermdegroot commented on c64c1a4 May 25, 2012

@gseguin - Shouldn't this commit and #4211 be picked into 1.1?

Please sign in to comment.