This file contains hidden or 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 to send the size of the page to the parent | |
const sendSize = function () { | |
const message = { | |
iframeResize: { | |
height: document.body.scrollHeight, | |
width: document.body.scrollWidth | |
} | |
}; | |
window.top.postMessage(message, "*"); | |
}; |
This file contains hidden or 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 casper = require('casper').create(); | |
casper.start('http://casperjs.org/'); | |
casper.then(function() { | |
this.echo('First Page: ' + this.getTitle()); | |
}); | |
casper.thenOpen('http://phantomjs.org', function() { | |
this.echo('Second Page: ' + this.getTitle()); | |
}); |
This file contains hidden or 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
element(by.model('operator')).element(by.css('option[value="DIVISION"]')).click(); |
This file contains hidden or 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
bake: { | |
build: { | |
options: { | |
// Change parse pattern from "{{ }}" to "{% %}" to stop interference with handlebars | |
parsePattern: '/{%s?([.-w]*)s?%}/g' | |
}, | |
files: grunt.file.readJSON('bake-files.json') | |
} | |
} |
This file contains hidden or 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
@mixin sprite_url_height_width($sprite_name, $image_name) { | |
background: sprite($sprite_name, $image_name) no-repeat; | |
width: image-width(sprite-file($sprite_name, $image_name)); | |
height: image-height(sprite-file($sprite_name, $image_name)); | |
} |