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
| http://mohumohu/parent.html | |
| http://hogehoge.com/iframe.html | |
| //parent.html | |
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
| <html> | |
| <head> |
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
| //parent.html | |
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
| <html> | |
| <head> | |
| <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" ></script> | |
| <script type="text/javascript"> | |
| window.addEventListener("message", receiveSize, false); | |
| function receiveSize(e) { | |
| //console.log("parent: message received", e); |
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
| <?php | |
| /** | |
| * Enqueue typekit fonts into WordPress using wp_enqueue_scripts. | |
| * | |
| * @author Robert Neu | |
| * @author Eric Fernandez | |
| * @copyright Copyright (c) 2014, Robert Neu | |
| * @license GPL-2.0+ | |
| * @link http://typekit.com | |
| */ |
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
| // Move Yoast to bottom | |
| function yoasttobottom() { | |
| return 'low'; | |
| } | |
| add_filter( 'wpseo_metabox_prio', 'yoasttobottom'); |
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
| /* | |
| Usage: | |
| $placeholder: #999; | |
| input { | |
| @include placeholder { color: $placeholder; } | |
| } | |
| */ | |
| @mixin placeholder { | |
| &::-webkit-input-placeholder { @content } /* webkit */ | |
| &:-moz-placeholder { @content } /* ff 4-18 */ |
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
| <?php | |
| // filter the Gravity Forms button type | |
| add_filter("gform_submit_button", "form_submit_button", 10, 2); | |
| function form_submit_button($button, $form){ | |
| // The following line is from the Gravity Forms documentation - it doesn't include your custom button text | |
| // return "<button class='button' id='gform_submit_button_{$form["id"]}'>'Submit'</button>"; | |
| // This includes your custom button text: | |
| return "<button class='button' id='gform_submit_button_{$form["id"]}'>{$form['button']['text']}</button>"; | |
| } | |
| // Oops this strips important stuff |
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() { | |
| var setupDatePickerGlue = function($el, format) { | |
| var elName = $el.attr("name"), // field name | |
| elId = $el.attr("id"), // field id | |
| elValue = $el.attr("value"); // field raw value | |
| // remove the name to prevent value conflict on submit | |
| $el.removeAttr("name"); | |
| // prepend an hidden input field with the same name | |
| $el.before($("<input type='hidden' name='" + elName + "' id='raw-" + elId + "' />")); |
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
| // Do stuff after 100ms of no resizing | |
| var resizeTimeout; | |
| $(window).on("resize", function () { | |
| clearTimeout(resizeTimeout); | |
| resizeTimeout = setTimeout(function () { | |
| // Do stuff | |
| }, 100); | |
| }); |
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
| AL : Alabama | |
| AK : Alaska | |
| AZ : Arizona | |
| AR : Arkansas | |
| CA : California | |
| CO : Colorado | |
| CT : Connecticut | |
| DE : Delaware | |
| DC : District of Columbia | |
| FL : Florida |
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
| <!-- | |
| Width 10000px is quite wide, but it has room for new "max", also because Facebook's "adaptation" means only shrinking | |
| the Page plugin to fit smaller container. To use Page plugin with larger container than 500px (current max.) you could try | |
| to add example Bootstrap class '.center-block' which would center the Page plugin inside larger container. | |
| --> | |
| <div class="row"> | |
| <div class="column-xs-6"> | |
| <div class="fb-page center-block" data-width="10000" data-adapt-container-width="true" data-href="https://www.facebook.com/facebook"></div> | |
| </div> | |
| </div> |
OlderNewer