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
(function(){ | |
"use strict": | |
angular.module('ng-relativeDate',[]) | |
.filter('ngrelativeDate',function(){ | |
/** | |
* [humanreadableDate converts the timestamp into human readable time ] | |
* @param {Int} timestamp - time as number of milliseconds since 1970/01/01: | |
* @return {string} relative time corresponding to timestamp | |
*/ |
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
jQuery(function($){ | |
$.ajax({ | |
type: 'GET', | |
url: '//remote.org/jsonp.php', | |
data: { | |
field: 'value' | |
}, | |
dataType: 'jsonp' | |
crossDomain: true, | |
}).done(function(response){ |