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
var daysMapping = { | |
'M': 'Mon', | |
'T': 'Tue', | |
'W': 'Wed', | |
'Th': 'Thu', | |
'F': 'Fri', | |
'Sat': 'Sat', | |
'Sun': 'Sun', | |
}; |
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
LG.settings.leadFields = LG.settings.leadFields.map(function(item){ // TODO: remove mapping | |
var key = item.key.toLowerCase().replace(/\s+/g, '_'); | |
if ( key === 'company_name' ) { | |
key = 'org_name'; | |
} | |
return _.extend(item, { | |
key: key | |
}); | |
}); |
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
------WebKitFormBoundaryXKgqgPj5mfewTK0m | |
Content-Disposition: form-data; name="utf8" | |
✓ | |
------WebKitFormBoundaryXKgqgPj5mfewTK0m | |
Content-Disposition: form-data; name="authenticity_token" | |
y/pZy5o/zF6VVi6QLH2aqceeaLo89BJQ3gI9kjt8X7g= | |
------WebKitFormBoundaryXKgqgPj5mfewTK0m | |
Content-Disposition: form-data; name="offering[is_charity]" |
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
<!-- Text interface --> | |
<div class="row" ng-if="interface === 'text'"> | |
<hr/> | |
<div> | |
<p class="lead"> | |
<div class="dropdown pull-left"> |
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
$scope = $('.b-content').scope() | |
$scope.$apply(function() { | |
$scope.leadsForQA.results.forEach(function(item) { | |
item.qa_status = 'Passes review'; | |
}) | |
}) | |
$('.qa-save-button').trigger('click'); |
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
"use strict";window.XdUtils=window.XdUtils||function(){function a(a,b){var c,d=b||{};for(c in a)a.hasOwnProperty(c)&&(d[c]=a[c]);return d}return{extend:a}}(),function(){function a(a,b){var c=XdUtils.extend(b,j);c.id=a,parent.postMessage(JSON.stringify(c),"*")}function b(b,c){var d=localStorage.getItem(c),e={key:c,value:d};a(b,e)}function c(b,c,d){localStorage.setItem(c,d);var e=localStorage.getItem(c),f={success:e===d};a(b,f)}function d(b,c){localStorage.removeItem(c),a(b,{})}function e(b,c){var d=localStorage.key(c);a(b,{key:d})}function f(b){localStorage.clear(),a(b,{})}function g(a){var g;try{g=JSON.parse(a.data)}catch(h){}g&&g.namespace===i&&("set"===g.action?c(g.id,g.key,g.value):"get"===g.action?b(g.id,g.key):"remove"===g.action?d(g.id,g.key):"key"===g.action?e(g.id,g.key):"clear"===g.action&&f(g.id))}function h(){var a={namespace:i,id:"iframe-ready"};parent.postMessage(JSON.stringify(a),"*")}var i="cross-domain-local-message",j={namespace:i};window.addEventListener?window.addEventListener("message",g,! |
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
REQUIRED_KEYS = [ | |
"API_SERVER_URL" | |
] | |
ENVIRONMENT = {} | |
for key in REQUIRED_KEYS | |
unless key of process.env | |
console.error "MISSING REQUIRED KEY: " + key | |
process.exit 1 |
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
{ | |
/* | |
* ENVIRONMENTS | |
* ================= | |
*/ | |
"es3": true, | |
// Define globals exposed by modern browsers. | |
"browser": true, |
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
function req(data){ | |
$.ajax({ | |
url: 'https://', | |
method: 'POST', | |
data: JSON.stringify(data), | |
contentType: 'application/json', | |
headers: { | |
'x-csrftoken': 'xpUoEKTvASGAYOhaFoPy3Boj4aGM4zsF' | |
}, | |
success: function(data){ |
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
javascript: (function (){ var scripts = document.getElementsByTagName('script'); var friendsList; for (var i = 0; i < scripts.length; i++) { var script = scripts[i]; if (script.innerHTML.indexOf('InitialChatFriendsList') > -1) { var friendsListString = script.innerHTML.split('"InitialChatFriendsList",[],{"list":')[1].split(',"groups"')[0]; friendsList = JSON.parse(friendsListString); console.log('friendsList:', friendsList); break; } } var html = friendsList.map(function(id, i){ id = id = id.split('-')[0]; var url = 'http://graph.facebook.com/' + id + '/picture?type=normal'; return '<a target="_blank" href="https://www.facebook.com/' + id + '"><img src="' + url + '"></a>'; }).join('\n'); var css = '<style> a { display: inline-block; margin: 7px; } img { max-width: 70px; max-height: 70px; vertical-align: top; } </style>'; open('data:text/html, <html>' + css + html + '</html>'); }()); |