The main difference between the two pages is the method of sending messages. Recieving messages is the same in both.
Send messages to iframe using iframeEl.contentWindow.postMessage
Recieve messages using window.addEventListener('message')
[ | |
{ | |
"name": "Alberta", | |
"abbreviation": "AB" | |
}, | |
{ | |
"name": "British Columbia", | |
"abbreviation": "BC" | |
}, | |
{ |
javascript:(function() {"use strict"; var coupons = angular.element("#lt-coupon-area").scope().sharedValues.unfilteredItems.slice(); coupons.filter(function(x){return x.clipStatus==="U";}).forEach(function(item){ var c1 = document.cookie.match(new RegExp('swyConsumerlbcookie=([^;]+)'))[1]; var c2 = document.cookie.match(new RegExp('swyConsumerDirectoryPro=([^;]+)'))[1]; var data = {"items":[]}; var clip = {}; clip.clipType="C";clip.itemId=item.offerId;clip.itemType=item.offerPgm;clip.vndrBannerCd=""; var list = {}; list.clipType="L";list.itemId=item.offerId;list.itemType=item.offerPgm; data.items.push(clip);data.items.push(list); var request = new Request('https://nimbus.safeway.com/Clipping1/services/clip/items', { method: 'POST', mode: 'cors', redirect: 'error', headers: new Headers({ 'Content-Type': 'application/json', 'X-SWY_VERSION': '1.0', 'X-SWY_API_KEY': 'emjou', 'X-SWY_BANNER': 'safeway', 'SWY_ISREMEMBERED': 'false', 'X-swyConsumerlbcookie': c1, 'X-swyConsumerDirectoryPro': c2 }), body: JSON.stringif |
/* Pulled from https://github.com/joyent/node/blob/master/deps/uv/include/uv.h */ | |
/* Expand this list if necessary. */ | |
#define UV_ERRNO_MAP(XX) \ | |
XX(E2BIG, "argument list too long") \ | |
XX(EACCES, "permission denied") \ | |
XX(EADDRINUSE, "address already in use") \ | |
XX(EADDRNOTAVAIL, "address not available") \ | |
XX(EAFNOSUPPORT, "address family not supported") \ | |
XX(EAGAIN, "resource temporarily unavailable") \ | |
XX(EAI_ADDRFAMILY, "address family not supported") \ |
input:-webkit-autofill { | |
-webkit-box-shadow: 0 0 0px 1000px white inset; | |
} | |
input:-webkit-autofill:focus { | |
-webkit-box-shadow: /*your box-shadow*/,0 0 0 50px white inset; | |
-webkit-text-fill-color: #333; | |
} | |
-webkit-text-fill-color: #838B95 !important; |
#!/bin/bash | |
FILES=*.wav | |
for f in $FILES | |
do | |
# echo "Processing ${f/.wav/.mp3} file..." | |
echo "Processing $f file..." | |
ffmpeg -i "$f" -codec:a libmp3lame -qscale:a 0 "${f/.wav/.mp3}" | |
# take action on each file. $f store current file name | |
# cat $f | |
done |
property theSavedValues : {"Application Windows", "Mission Control", "Desktop", "Notification Center"} -- for example | |
tell application "System Preferences" | |
activate | |
set current pane to pane id "com.apple.preference.expose" | |
tell application "System Events" | |
tell window "Mission Control" of process "System Preferences" | |
click button "Hot Corners…" | |
tell sheet 1 | |
tell group 1 |
function getData() { | |
var deferred = $.Deferred(); | |
$.ajax({ | |
'url': 'http://google.com', | |
'success': function(data) { | |
deferred.resolve('yay'); | |
}, | |
'error': function(error) { | |
deferred.reject('boo'); |