Skip to content

Hi! I cleaned up your code for you! #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 31 additions & 31 deletions docs/_assets/css/jqm-docs.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* jqm docs css

Beware: lots of last-minute CSS going on in here
cobblers, shoes,
Beware: lots of last-minute CSS going on in here
cobblers, shoes,
*/

body { background: #dddddd; }
Expand All @@ -14,7 +14,7 @@ body { background: #dddddd; }
.ui-mobile .jqm-themeswitcher { margin: 10px 25px 10px 10px; }

h2 { margin:1.2em 0 .4em 0; }
p code { font-size:1.2em; font-weight:bold; }
p code { font-size:1.2em; font-weight:bold; }

dt { font-weight: bold; margin: 2em 0 .5em; }
dt code, dd code { font-size:1.3em; line-height:150%; }
Expand Down Expand Up @@ -77,46 +77,46 @@ p.intro strong {

/* new API additions */

dt {
margin: 35px 0 15px 0;
background-color:#ddd;
dt {
margin: 35px 0 15px 0;
background-color:#ddd;
font-weight:normal;
}
dt code {
display:inline-block;
dt code {
display:inline-block;
font-weight:bold;
color:#56A00E;
padding:3px 7px;
margin-right:10px;
background-color:#fff;
color:#56A00E;
padding:3px 7px;
margin-right:10px;
background-color:#fff;
}
dd {
margin-bottom:10px;
dd {
margin-bottom:10px;
}
dd .default { font-weight:bold; }
dd pre {
margin:0 0 0 0;
dd pre {
margin:0 0 0 0;
}
dd code { font-weight: normal; }
dd pre code {
margin:0;
border:none;
font-weight:normal;
font-size:100%;
background-color:transparent;
dd pre code {
margin:0;
border:none;
font-weight:normal;
font-size:100%;
background-color:transparent;
}
dd h4 { margin:15px 0 0 0; }

.localnav {
margin:0 0 20px 0;
overflow:hidden;
}
.localnav li {
float:left;
}
.localnav .ui-btn-inner {
padding: .6em 10px;
font-size:80%;
.localnav .ui-btn-inner {
padding: .6em 10px;
font-size:80%;
}


Expand All @@ -126,13 +126,13 @@ dd h4 { margin:15px 0 0 0; }
background: #74b042;
color: #fff;
font-weight: bold;
text-shadow: 0 -1px 1px #234403;
text-shadow: 0 -1px 1px #234403;
background-image: -webkit-gradient(linear, left top, left bottom, from(#74b042), to(#56A00E)); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #74b042, #56A00E); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(top, #74b042, #56A00E); /* FF3.6 */
background-image: -ms-linear-gradient(top, #74b042, #56A00E); /* IE10 */
background-image: -o-linear-gradient(top, #74b042, #56A00E); /* Opera 11.10+ */
background-image: linear-gradient(top, #74b042, #56A00E);
background-image: linear-gradient(top, #74b042, #56A00E);
}
.ui-bar-f,
.ui-bar-f .ui-link-inherit {
Expand All @@ -149,7 +149,7 @@ dd h4 { margin:15px 0 0 0; }
/* docs site layout */

@media all and (min-width: 650px){

.jqm-home {
position: absolute;
left: 10px;
Expand Down Expand Up @@ -237,7 +237,7 @@ dd h4 { margin:15px 0 0 0; }
margin: 0;
padding: 0;
}

}
@media all and (min-width: 750px){
.type-home .ui-content,
Expand All @@ -250,7 +250,7 @@ dd h4 { margin:15px 0 0 0; }
.content-primary {
width: 56%;
padding-right: 1%;
}
}
.type-interior .ui-content {
background-position: 34%;
}
Expand Down
8 changes: 4 additions & 4 deletions docs/_assets/js/_viewsource.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ $.fn.addSourceLink = function(style){
"</div>" )
.appendTo( "body" )
.page();

$('<a href="#">View Source</a>')
.buttonMarkup({
icon: 'arrow-u',
Expand All @@ -30,10 +30,10 @@ $.fn.addSourceLink = function(style){
page.find('.ui-btn-left').click(function(){
$.changePage(activepage, 'slideup',true);
return false;
});
})
});
})
.insertAfter(this);
});
});
};

//set up view source links
Expand Down
12 changes: 6 additions & 6 deletions docs/_assets/js/jqm-docs.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
//set up the theme switcher on the homepage
$('div').live('pagecreate',function(event){
if( !$(this).is('.ui-dialog')){
if( !$(this).is('.ui-dialog')){
var appendEl = $(this).find('.ui-footer:last');

if( !appendEl.length ){
appendEl = $(this).find('.ui-content');
}

if( appendEl.is("[data-position]") ){
return;
}

$('<a href="#themeswitcher" data-'+ $.mobile.ns +'rel="dialog" data-'+ $.mobile.ns +'transition="pop">Switch theme</a>')
.buttonMarkup({
'icon':'gear',
Expand All @@ -23,7 +23,7 @@ $('div').live('pagecreate',function(event){
.bind( "vclick", function(){
$.themeswitcher();
});
}
}

});

Expand All @@ -37,7 +37,7 @@ $(function(){
function setDefaultTransition(){
var winwidth = $( window ).width(),
trans ="slide";

if( winwidth >= 1000 ){
trans = "none";
}
Expand Down
40 changes: 20 additions & 20 deletions docs/about/accessibility.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<!DOCTYPE html>
<html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Accessibility</title>
<link rel="stylesheet" href="../../themes/default/" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Accessibility</title>
<link rel="stylesheet" href="../../themes/default/" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script src="../../js/jquery.js"></script>
<script src="../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
<script src="../_assets/js/jqm-docs.js"></script>
<script src="../../js/"></script>
</head>
<body>
</head>
<body>

<div data-role="page" class="type-interior">

Expand All @@ -21,19 +21,19 @@ <h1>Accessibility</h1>
</div><!-- /header -->

<div data-role="content">


<div class="content-primary">

<h2>Accessibility</h2>
<p>jQuery Mobile is built upon standard, semantic HTML, allowing pages to be accessible to the broadest range of devices possible. For A-Grade browsers, many of the components in jQuery Mobile leverage techniques such as focus management, keyboard navigation, and HTML attributes specified in the W3C's <a href="http://www.w3.org/TR/wai-aria/">WAI-ARIA</a> specification.</p>
<p>jQuery Mobile is built upon standard, semantic HTML, allowing pages to be accessible to the broadest range of devices possible. For A-Grade browsers, many of the components in jQuery Mobile leverage techniques such as focus management, keyboard navigation, and HTML attributes specified in the W3C's <a href="http://www.w3.org/TR/wai-aria/">WAI-ARIA</a> specification.</p>

<p>By utilizing these techniques, we do our best to ensure an accessible experience to users with disabilities such as blindness, who may use screen readers (like <em>VoiceOver</em>, on Apple's iPhone device) or other assistive technology to access the web.</p>

<p>While our accessibility implementation is currently a work in progress, we aim to provide a fully accessible suite of components for version 1.0.</p>
</div>

</div>

<div class="content-secondary">

<div data-role="collapsible" data-collapsed="true" data-theme="b">
Expand All @@ -47,22 +47,22 @@ <h3>More in this section</h3>
<li data-theme="a"><a href="../../docs/about/accessibility.html">Accessibility</a></li>
<li><a href="../../docs/about/platforms.html">Supported platforms</a></li>


</ul>
</div>
</div>


</div><!-- /content -->

<div data-role="footer" class="footer-docs" data-theme="c">
<p>&copy; 2011 The jQuery Project</p>
</div>



</div><!-- /content -->

</div><!-- /page -->

</body>
Expand Down
30 changes: 15 additions & 15 deletions docs/about/features.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
<!DOCTYPE html>
<html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Features</title>
<link rel="stylesheet" href="../../themes/default/" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Docs - Features</title>
<link rel="stylesheet" href="../../themes/default/" />
<link rel="stylesheet" href="../_assets/css/jqm-docs.css"/>
<script src="../../js/jquery.js"></script>
<script src="../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
<script src="../_assets/js/jqm-docs.js"></script>
<script src="../../js/"></script>
</head>
<body>
</head>
<body>

<div data-role="page" class="type-interior">
<div data-role="page" class="type-interior">

<div data-role="header" data-theme="f">
<h1>Features</h1>
<h1>Features</h1>
<a href="../../" data-icon="home" data-iconpos="notext" data-direction="reverse" class="ui-btn-right jqm-home">Home</a>
</div><!-- /header -->

<div data-role="content">

<div class="content-primary">

<h2>Key features:</h2>
<ul>
<li><strong>Built on jQuery core</strong> for familiar and consistent jQuery syntax and minimal learning curve</li>
Expand All @@ -40,7 +40,7 @@ <h2>Key features:</h2>
</ul>

</div>

<div class="content-secondary">

<div data-role="collapsible" data-collapsed="true" data-theme="b">
Expand All @@ -56,16 +56,16 @@ <h3>More in this section</h3>

</ul>
</div>
</div>
</div>

</div><!-- /content -->

<div data-role="footer" class="footer-docs" data-theme="c">
<p>&copy; 2011 The jQuery Project</p>
</div>
</div>




</div><!-- /page -->

</body>
Expand Down
6 changes: 3 additions & 3 deletions docs/about/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<script src="../../experiments/themeswitcher/jquery.mobile.themeswitcher.js"></script>
<script src="../_assets/js/jqm-docs.js"></script>
<script src="../../js/"></script>
</head>
<body>
</head>
<body>

<div data-role="page" class="type-index">

Expand All @@ -21,7 +21,7 @@ <h1>About jQuery Mobile</h1>
</div>

<div data-role="content">

<ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="f">
<li data-role="list-divider">Overview</li>
<li><a href="intro.html">Intro to jQuery Mobile</a></li>
Expand Down
Loading