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
/* | |
* Move a popup with a drag. | |
* | |
* Uses Underscore and jQuery for implementation | |
* | |
* @class | |
*/ | |
OpenLayers.Control.DragPopup = OpenLayers.Class(OpenLayers.Control, { | |
down: false, | |
popPnt: null, |
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
$.getScript("http://underscorejs.org/underscore-min.js") | |
.done(function (script, textStatus) { | |
console.log(textStatus); | |
var $code = $("#arkfallcode") | |
var $button = $("#codeRedemption button.submit") | |
var $error = $("#voucher_error"); | |
var delay = 0; | |
var codes = "E2DFMO,6CIBJT,9ELBUP,ETCTFJ,AMY2ZH,FCCEPO,KBZMVZ,FYKQZX,HVN5YD,TFM2IH,RPR9ZS,TLK9F1,VPZK7B,V2227Q,VO5DHS,XCTFGY,XBNBPE,YJUICP,8MKLUL,SCSD5T,DKCJK3,CWAPDX,WA94BD,TWIK9S,PVXDTU,VGFSW9,4OSBUA,RQXPGX,LDBAMY,BJT9ID,Z5OP9L,CH8FJB,I71ADU,GBIXKI,GT1P3H,W0UODG,3Q6VZN,JJD6N5,VW4LQ0,MVV8SL,WKJIXT,U1T8PG,CEOZCG,6ZDGAR,YOT4ZA,LQ7WVN,7VLERN,O2AM1S,J71AAM,IS3KAF,HTG7BF,PSZ3IE,LFM6RV,UUXTGI,OTIINU,34TPUS,FBWTVC,6F9KIV,3WWJKK,8MOMX2,A1AQCA,JIMOFE,2A9WZT,KHIBBT,M2BDRP,HMDQRN,EXA6RK,WOMCCQ,YW6ZQ8,LK47XN,JQ9ZTM,R1T3EB,WBIEOS,JIGR3J,RXVI6J,ISHSQF,CHUROO,MEWFWY,VMNNRE,DT0CHZ,K880P4,RFTRHS,OIUQQ5,FZY8CB,53VIZG,OLXQJ6,V5WKFT,OBWTZL,HC1GN0,ZFR5TA,D91AQK,W72URO,41US8B,YDBF4L,CNABZX,6JOMJO,SZUZSY,XT4PMX,PKYLKN,8KBMUT,JBS7QX,TU3 |