This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .get(url,callback); | |
| .ajax { | |
| type:'POST', //defaults to GET | |
| url:'/api/getinfo', //defaults to window.location | |
| contentType:'application/json', //defaults to application/x-www-form-urlencoded | |
| headers:{}, | |
| dataType:'application/json', //defaults to text/html | |
| data:{username:foo}, //Can be a Key/Value pair string or object. If it's an object, $.serialize is called to turn it into a Key/Value pair string | |
| success:function(data){}, //function to call on successful Ajax request | |
| error:function(data){}, //function to call when an error exists in the Ajax request |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $.os.webkit //True if webkit found in the user agent | |
| $.os.android //True if anroid useragent | |
| $.os.ipad //True if iPad useragent | |
| $.os.iphone //True if iPhone user agent | |
| $.os.webos //True if WebOS detected | |
| $.os.touchpad //True if WebOS and Touchpad user agent | |
| $.os.ios //True if iPad or iPhone | |
| $.os.blackberry //True if Blackberry PlayBook or OS >=6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* http://docs.angularjs.org/#!angular.service */ | |
| /** | |
| * App service which is responsible for the main configuration of the app. | |
| */ | |
| angular.service('myAngularApp', function($route, $location, $window) { | |
| $route.when('/view1', {template: 'partials/partial1.html', controller: MyCtrl1}); | |
| $route.when('/view2', {template: 'partials/partial2.html', controller: MyCtrl2}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <a class="uibutton" href="#">Button</a> | |
| <button class="uibutton" type="submit">Button</button> | |
| <input class="uibutton" type="submit" value="Button"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <a class="uibutton large" href="#">Search</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="uibutton-group"> | |
| <a class="uibutton" href="#">Dashboard</a> | |
| <a class="uibutton" href="#">Inbox</a> | |
| <a class="uibutton" href="#">Account</a> | |
| <a class="uibutton" href="#">Logout</a> | |
| </div> | |
| <ul class="uibutton-group"> | |
| <li><a class="uibutton" href="#">Dashboard</a></li> | |
| <li><a class="uibutton" href="#">Inbox</a></li> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="uibutton-toolbar"> | |
| <a class="uibutton" href="#">Mark as unread</a> | |
| <div class="uibutton-group"> | |
| <a class="uibutton" href="#">Report spam</a> | |
| <a class="uibutton" href="#">Delete</a> | |
| </div> | |
| <a class="uibutton" href="#">Unsubscribe</a> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <a class="uibutton icon add" href="#">New message</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| localStorage.debug = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var Person = arc.Class.create({ | |
| _name:null, | |
| initialize: function(name) { | |
| this.setName(name); | |
| }, | |
| setName: function(name){ | |
| this._name = name; | |
| }, |