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 h = require('virtual-dom/h') | |
var diff = require('virtual-dom/diff') | |
var pv = require('virtual-dom-patch-viewer') | |
vdom1 = h('div', [ | |
h('div', 'div stuff'), | |
h('script', {src: 'bundle.js', key: 1}) | |
]) | |
vdom2 = h('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
park_trip_button_bind: function(park_id){ | |
if (typeOf(park_id) == 'array'){ | |
for (var i in park_id) (function(i) { | |
$("#tripadd_"+park_id[i]).bind('click',function(){ | |
bp.add_remove_park_trip(park_id[i]); | |
}); | |
})(i); | |
} else { | |
$("#tripadd_"+park_id).bind('click',function(){ | |
bp.add_remove_park_trip(park_id); |
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
app.get('/canvas', function(req,res) { | |
database.activegalleries(function(results){ | |
for (gallery in results){ | |
var name = results[gallery]['gallery_name']; | |
database.viewgallery(name, function(imgs){ | |
results[gallery]['imgs']=imgs; | |
console.log(results[gallery]) | |
}); |