Skip to content

Commit

Permalink
remove bad whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardobarreto committed Dec 19, 2011
1 parent e5c95bf commit dc8af91
Show file tree
Hide file tree
Showing 10 changed files with 160 additions and 160 deletions.
18 changes: 9 additions & 9 deletions README.md
@@ -1,17 +1,17 @@
metabrag - show your geek cred off metabrag - show your geek cred off
======== ========


This is a jQuery plugin for showing off your Github user info, Github repositories This is a jQuery plugin for showing off your Github user info, Github repositories
and all your Coderwall badges. and all your Coderwall badges.


Metabrag has support for showing multiple user infos and sets aim at being highly Metabrag has support for showing multiple user infos and sets aim at being highly
customizable. customizable.


Downloading and Installing Downloading and Installing
-------------------------- --------------------------


### Downloading metabrag ### Downloading metabrag
To download either clone the git repository or download autogenerated tarball. To download either clone the git repository or download autogenerated tarball.


#### Using git #### Using git


Expand All @@ -22,7 +22,7 @@ git clone git@github.com:mikaelbr/metabrag.git


#### Downloading autogenerated tarball #### Downloading autogenerated tarball


Use this link to download tarball Use this link to download tarball
https://github.com/mikaelbr/metabrag/tarball/master https://github.com/mikaelbr/metabrag/tarball/master


### Installing ### Installing
Expand Down Expand Up @@ -52,12 +52,12 @@ With the HTML structure
<body> <body>
<!-- metabrag plugin wrapper --> <!-- metabrag plugin wrapper -->
<div class="element-name" data-metabrag-username="mikaelbr"> <div class="element-name" data-metabrag-username="mikaelbr">

</div> </div>
</body> </body>
``` ```


You can also drop using the data attribute and only support one user. Initiate the You can also drop using the data attribute and only support one user. Initiate the
plugin using: plugin using:


```javascript ```javascript
Expand Down Expand Up @@ -101,7 +101,7 @@ metabrag can use two data attributes
* data-metabrag-username * data-metabrag-username
* data-metabrag-coderwall-username * data-metabrag-coderwall-username


The latter is used to set a spesific username for Coderwall, if it is not the same as your Github user. The latter is used to set a spesific username for Coderwall, if it is not the same as your Github user.


### Events ### Events
There are 3 events set up with this plugin. They all use the namespace ```metabrag```. You can change the There are 3 events set up with this plugin. They all use the namespace ```metabrag```. You can change the
Expand Down Expand Up @@ -138,7 +138,7 @@ Here are the settings that can be altered to customize your geek creds
``` ```


What's important to remember is that the data attributes are of a higher priority than the What's important to remember is that the data attributes are of a higher priority than the
username property. If you have set property username and the data attribute. username property. If you have set property username and the data attribute.


## Further plans ## Further plans


Expand Down
4 changes: 2 additions & 2 deletions index.html
Expand Up @@ -15,7 +15,7 @@
showForks: false showForks: false
}); });
}); });

$(".metabrag").live("userinfoLoaded.metabrag", function (event, jsonObj, username) { $(".metabrag").live("userinfoLoaded.metabrag", function (event, jsonObj, username) {
console.log("userinfoLoaded.metabrag event triggered:"); console.log("userinfoLoaded.metabrag event triggered:");
console.log(jsonObj); console.log(jsonObj);
Expand All @@ -27,7 +27,7 @@
<div class="page-wrapper"> <div class="page-wrapper">
<!-- The metabrag plugin will automaticly fetch the username --> <!-- The metabrag plugin will automaticly fetch the username -->
<div class="metabrag" data-metabrag-username="mikaelbr"></div> <div class="metabrag" data-metabrag-username="mikaelbr"></div>

<div class="metabrag" data-metabrag-username="dustin"></div> <div class="metabrag" data-metabrag-username="dustin"></div>
</div> </div>
</body> </body>
Expand Down
18 changes: 9 additions & 9 deletions iphone-demo/index.html
Expand Up @@ -4,7 +4,7 @@
<title>metabrag</title> <title>metabrag</title>
<meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no"> <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, user-scalable=no">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="../jquery.min.js"></script> <script type="text/javascript" src="../jquery.min.js"></script>
<script type="text/javascript" src="jquery.mobile.js"></script> <script type="text/javascript" src="jquery.mobile.js"></script>
Expand All @@ -24,35 +24,35 @@
showExtendedInfo: true showExtendedInfo: true
}); });
}); });


$(".metabrag-box").live("scrollpage", function (event, position) { $(".metabrag-box").live("scrollpage", function (event, position) {
var page = (position.x/$("#ex4").width()); var page = (position.x/$("#ex4").width());
if(typeof(page)=='number' && parseInt(page)==page) { if(typeof(page)=='number' && parseInt(page)==page) {
$(".indicators span").removeClass("indicator-active"); $(".indicators span").removeClass("indicator-active");
$(".indicators span").eq(page).addClass("indicator-active"); $(".indicators span").eq(page).addClass("indicator-active");
} }
}); });

$(".metabrag-box").live("userinfoLoaded.metabrag", function (event, jsonObj, username) { $(".metabrag-box").live("userinfoLoaded.metabrag", function (event, jsonObj, username) {
var $elm = $(this+"[data-metabrag-username='"+username+"']").find(".ui-metabrag-github-userbox"); var $elm = $(this+"[data-metabrag-username='"+username+"']").find(".ui-metabrag-github-userbox");
$elm.wrapInner("<div data-scroll='y'/>"); $elm.wrapInner("<div data-scroll='y'/>");
updateScrollView($elm); updateScrollView($elm);
}); });

$(".metabrag-box").live("repoinfoLoaded.metabrag", function (event, jsonObj, username) { $(".metabrag-box").live("repoinfoLoaded.metabrag", function (event, jsonObj, username) {
var $elm = $(this+"[data-metabrag-username='"+username+"']").find(".ui-metabrag-github-repobox"); var $elm = $(this+"[data-metabrag-username='"+username+"']").find(".ui-metabrag-github-repobox");
$elm.wrapInner("<div data-scroll='y'/>"); $elm.wrapInner("<div data-scroll='y'/>");
updateScrollView($elm); updateScrollView($elm);
}); });

$(".metabrag-box").live("badgesLoaded.metabrag", function (event, jsonObj, username) { $(".metabrag-box").live("badgesLoaded.metabrag", function (event, jsonObj, username) {
var $elm = $(this+"[data-metabrag-coderwall-username='"+username+"']").find(".ui-metabrag-coderwall-badges"); var $elm = $(this+"[data-metabrag-coderwall-username='"+username+"']").find(".ui-metabrag-coderwall-badges");
$elm.wrapInner("<div data-scroll='y' />"); $elm.wrapInner("<div data-scroll='y' />");
updateScrollView($elm); updateScrollView($elm);
}); });


</script> </script>
</head> </head>
<body> <body>
Expand All @@ -64,7 +64,7 @@ <h1>metabrag</h1>


<div data-role="content"> <div data-role="content">
<div id="ex4" data-scroll="xp" class="metabrag-box" data-metabrag-username="mikaelbr"> <div id="ex4" data-scroll="xp" class="metabrag-box" data-metabrag-username="mikaelbr">

</div> </div>
<div class="indicators"> <div class="indicators">
<span class="indicator-active"></span> <span class="indicator-active"></span>
Expand Down
66 changes: 33 additions & 33 deletions iphone-demo/jquery.easing.js
Expand Up @@ -5,33 +5,33 @@
* to offer multiple easing options * to offer multiple easing options
* *
* TERMS OF USE - jQuery Easing * TERMS OF USE - jQuery Easing
* *
* Open source under the BSD License. * Open source under the BSD License.
* *
* Copyright © 2008 George McGinley Smith * Copyright © 2008 George McGinley Smith
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without modification, * Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met: * are permitted provided that the following conditions are met:
* *
* Redistributions of source code must retain the above copyright notice, this list of * Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer. * conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list * Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials * of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution. * provided with the distribution.
* *
* Neither the name of the author nor the names of contributors may be used to endorse * Neither the name of the author nor the names of contributors may be used to endorse
* or promote products derived from this software without specific prior written permission. * or promote products derived from this software without specific prior written permission.
* *
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE. * OF THE POSSIBILITY OF SUCH DAMAGE.
* *
*/ */


Expand Down Expand Up @@ -147,7 +147,7 @@ jQuery.extend( jQuery.easing,
return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
}, },
easeInOutBack: function (x, t, b, c, d, s) { easeInOutBack: function (x, t, b, c, d, s) {
if (s == undefined) s = 1.70158; if (s == undefined) s = 1.70158;
if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
}, },
Expand All @@ -174,32 +174,32 @@ jQuery.extend( jQuery.easing,
/* /*
* *
* TERMS OF USE - EASING EQUATIONS * TERMS OF USE - EASING EQUATIONS
* *
* Open source under the BSD License. * Open source under the BSD License.
* *
* Copyright © 2001 Robert Penner * Copyright © 2001 Robert Penner
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without modification, * Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met: * are permitted provided that the following conditions are met:
* *
* Redistributions of source code must retain the above copyright notice, this list of * Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer. * conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list * Redistributions in binary form must reproduce the above copyright notice, this list
* of conditions and the following disclaimer in the documentation and/or other materials * of conditions and the following disclaimer in the documentation and/or other materials
* provided with the distribution. * provided with the distribution.
* *
* Neither the name of the author nor the names of contributors may be used to endorse * Neither the name of the author nor the names of contributors may be used to endorse
* or promote products derived from this software without specific prior written permission. * or promote products derived from this software without specific prior written permission.
* *
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE. * OF THE POSSIBILITY OF SUCH DAMAGE.
* *
*/ */

0 comments on commit dc8af91

Please sign in to comment.