This is the Ractive.js clock example implemented in AngularJS. A working Plunkr is also available.
Much of the JavaScript, most of the HTML, and all of the CSS was taken directly from the Ractive.js example for minimal differences in the samples.
$(document).ready(function() { | |
$('table.tracks tbody').makeSortable({ url: "<%= sort_my_mix_tracks_path(mix) -%>" }); | |
}); |
web: node server |
class Api::RegistrationsController < Api::BaseController | |
respond_to :json | |
def create | |
user = User.new(params[:user]) | |
if user.save | |
render :json=> user.as_json(:auth_token=>user.authentication_token, :email=>user.email), :status=>201 | |
return | |
else |
protractor.wrapDriver | |
protractor.setInstance | |
protractor.getInstance | |
protractor.By | |
protractor.By.binding | |
protractor.By.select | |
protractor.By.selectedOption | |
protractor.By.input | |
protractor.By.repeater |
This is the Ractive.js clock example implemented in AngularJS. A working Plunkr is also available.
Much of the JavaScript, most of the HTML, and all of the CSS was taken directly from the Ractive.js example for minimal differences in the samples.
angular.module('utilsModule').filter("megaNumber", () => { | |
return (number, fractionSize) => { | |
if(number === null) return null; | |
if(number === 0) return "0"; | |
if(!fractionSize || fractionSize < 0) | |
fractionSize = 1; | |
var abs = Math.abs(number); |