Skip to content

Commit

Permalink
wip less broken maybe?
Browse files Browse the repository at this point in the history
  • Loading branch information
TangentFoxy committed Jan 29, 2017
1 parent 75a0383 commit 90ee342
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions 1000cards.moon
Expand Up @@ -62,13 +62,17 @@ class extends lapis.Application
input type: "number", name: "point_value", placeholder: "100"
input type: "submit", value: "Submit", class: "pure-button", onclick: "artwork.getImage();"

script -> raw "var artwork = LC.init(
document.getElementsByClassName('artwork')[0],
{
imageURLPrefix: '/static/literallycanvas/img',
imageSize: {width: 400, height: 400}
}
);"
script -> raw "
window.onload = function() {
var artwork = LC.init(
document.getElementsByClassName('artwork')[0],
{
imageURLPrefix: '/static/literallycanvas/img',
imageSize: {width: 400, height: 400}
}
}
);
"
POST: =>
unless @session.id
return redirect_to: @url_for "user_login"
Expand Down

0 comments on commit 90ee342

Please sign in to comment.