- jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
- Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
- AngularJS - Conventions based MVC framework for HTML5 apps.
- Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
- lawnchair - Key/value store adapter for indexdb, localStorage
This file contains 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
# Karma configuration | |
# Generated on Thu Sep 05 2013 22:19:47 GMT+0200 (CEST) | |
module.exports = (config) -> | |
config.set | |
# base path, that will be used to resolve all patterns, eg. files, exclude | |
basePath: '..' | |
customLaunchers: |
This file contains 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 env = 'prod'; | |
var dummyConsole = {}; | |
for(var fn in console.__proto__) dummyConsole[fn] = function() {}; | |
if(env === 'prod' && window.console) window.console = dummyConsole; |
This file contains 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 | |
href="javascript:void(0)" | |
facebook-share | |
app-id="{{ appId }}" | |
image="{{ image }}" | |
url="{{ url }}" | |
title="{{ title }}" | |
description="{{ description }}" | |
> | |
Share with Facebook |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<meta charset="utf-8"> | |
<title>Simple Polylines</title> | |
<style> | |
html, body, #map { | |
height: 100%; | |
margin: 0px; |
This file contains 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
angular.module('filters.groupBy', []) | |
.filter('groupBy', function() { | |
return function(items, groupedBy) { | |
if (items) { | |
var finalItems = [], | |
thisGroup; | |
for (var i = 0; i < items.length; i++) { | |
if (!thisGroup) { |
This file contains 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
angular.module('app', []) | |
.filter('truncate', function () { | |
return function (text, length, end) { | |
if (isNaN(length)) { | |
length = 10; | |
} | |
if (end === undefined) { | |
end = '...'; |
###App:
- File Upload: https://github.com/blueimp/jQuery-File-Upload (IE6+)
- Slider: http://responsiveslides.com/ (IE6+)
- Placeholder: http://jamesallardice.github.io/Placeholders.js/ (IE6+)
- Autocomplete: jQuery UI Autocomplete – http://jqueryui.com/autocomplete/ (IE6+, bgiframe plugin)
- Multipage Form: Pure Javascript
- Pie Charts: http://tmaslen.com/jseasycharts/demos.pie.html (IE6+)
- DatePicker: jQuery UI DatePicker – http://jqueryui.com/datepicker/ (IE6+, bgiframe plugin)
###Admin:
This file contains 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
// Credits: http://stackoverflow.com/q/9514179/237209 | |
app.factory('platform', [function () { | |
var unknown = '-'; | |
//browser | |
var nVer = navigator.appVersion; | |
var nAgt = navigator.userAgent; | |
var browser = navigator.appName; |
This file contains 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
<!-- https://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/MapLinks/MapLinks.html --> | |
<a href="maps://?q=dallas" data-rel="external">iOS launch in apple maps</a> | |
<!-- https://developers.google.com/maps/documentation/ios/urlscheme --> | |
<a href="comgooglemaps://?q=dallas" data-rel="external">iOS launch in google maps</a> | |
<a href="geo://0,0?q=dallas" data-rel="external">Android launch in google maps</a> |
OlderNewer