This file contains 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
import Html exposing (text) | |
apple = { color = "Red" } | |
pear = { color = "Green" } | |
whatFruit {color} = | |
if color == "Red" then | |
"It's red, and it must be an apple!" | |
else if color == "Green" then | |
"It's green, so it must be a pear!" |
This file contains 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
$.PeriodicalUpdater('/notifications', { | |
method: 'GET', | |
data: id: $field_id, | |
cookie: false, | |
maxTimeout: 5000, | |
error: function (xhr,status,message) { | |
// Do stuff | |
// Insert handle.stop() here | |
} | |
}, function (remoteData, success, xhr, handle){ |