Download from here:
MD5: 59bab8f71f8c096cd3f72cd73851515d
Rename it to:
Download from here:
MD5: 59bab8f71f8c096cd3f72cd73851515d
Rename it to:
| <!-- MODAL --> | |
| <div class="modal fade" id="ordersDetailList" tabindex="-1" ng-model="selectedDetails" | |
| role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> | |
| <div class="modal-dialog"> | |
| <div class="modal-content"> | |
| <div class="modal-header"> | |
| <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |
| <table class="table"> | |
| <thead> | |
| <th ng-repeat="(key,value) in selectedDetails">{{key}}</th> |
| obj = { a:1, b:2 }; | |
| //loop through and get key/val | |
| for ( var key in obj ){ | |
| var objkey = key; | |
| var objval = obj[key]; | |
| } |
| <table class="table"> | |
| // Return the keys on the first returned object **setup table header** | |
| <tr><th ng-repeat="(key,value) in objects[0]">{{key}}</th></tr> | |
| // Return the values of each object value in aray | |
| <tr ng-repeat="object in objects"> | |
| <td ng-repeat="(key2, value) in object">{{value}}</td> | |
| </tr> | |
| </table> |
| .background-image(@imageURL){ | |
| background: url(@imageURL) no-repeat 0 0; | |
| -webkit-background-size: cover; | |
| -moz-background-size: cover; | |
| -o-background-size: cover; | |
| background-size: cover; | |
| } |
| https://instagram.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri=REDIRECT-URI&response_type=token |
| // Responsive Helper // | |
| // Consoles to width of the screen and tells roughly what device would be viewing it. | |
| $width = $(document).width(); | |
| if ($width>1024) | |
| console.log("large screen. range:x<>1024. width = "+$width); | |
| else if ($width>960) | |
| console.log("standard screen. range:1024<>960. width = "+$width) | |
| else if ($width>768) | |
| console.log("tablet portrait to standard 960. range:960<>768. width = "+$width) |
| // Test whether page has touched already scolled to btm. | |
| var bottomFlag = false | |
| $(window).scroll(function(e) { | |
| // Check if we reached bottom of the document and fadeOut the target element | |
| if ( bottomFlag === false && $(window).scrollTop() + $(window).height() == $(document).height() ) { | |
| // DO SOMETHING HERE... | |
| bottomFlag = true; |
| // HELPER: #key_value | |
| // | |
| // Usage: {{#key_value obj}} Key: {{key}} // Value: {{value}} {{/key_value}} | |
| // | |
| // Iterate over an object, setting 'key' and 'value' for each property in | |
| // the object. | |
| Handlebars.registerHelper("key_value", function(obj, fn) { | |
| var buffer = "", | |
| key; |