You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
644 B
JavaScript
25 lines
644 B
JavaScript
function closeLetter() {
|
|
$('.letterBox').hide()
|
|
}
|
|
|
|
|
|
function openLetter() {
|
|
$('#letterContents').html(` <p id = "letterContents">
|
|
i have nothing to say here yet i guess. pls remind me if this is still empty and you think it's weird.
|
|
<br><br>
|
|
ada`)
|
|
$('.letterBox').toggle()
|
|
}
|
|
|
|
|
|
for(var i=0; i<recipes.length; i++){
|
|
$('<div />', {
|
|
id: recipes[i].name,
|
|
class: 'recipeName',
|
|
click: function(){ window.location.href = 'recipes/' + (this.id) + '.html' },
|
|
})
|
|
.html(recipes[i].name.replace(/-/g, ' '))
|
|
.css({left: 35*(recipes[i][xAxis[0]]+10), top: (690-35*(recipes[i][yAxis[0]]+10)) })
|
|
.appendTo($('#canvasCover'))
|
|
}
|