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')
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
/** | |
* FUNCTIONS | |
**/ | |
/** | |
* Functions create closures; variables defined | |
* inside of them are accessible inside the | |
* function, and to any functions that were | |
* defined within the same scope. | |
**/ |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
concat: { | |
// js stuff | |
}, | |
uglify: { | |
// more js stuff |
Here are a few common tasks you might do in your templates, as they would be written in ExpressionEngine vs. Craft CMS.
<div id="payment-errors"> | |
{{ bison:checkout_form_errors }} | |
{{ if missing }} | |
<p>You are missing the following fields.</p> | |
<ul> | |
{{ missing }} | |
<li>The {{ field_label }} field {{ message }}</li> | |
{{ /missing }} | |
</ul> | |
{{ endif }} |
Revised date: 07/11/2012
Between us [company name] and you [customer name]
We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.
title: Fieldset Kitchen Sink | |
fields: | |
status: | |
type: status | |
_template: | |
type: templates |
JavaScript Code
var str = "hi";
Memory allocation:
Address | Value | Description |
---|---|---|
...... |
... |
$(".event").each(function() { | |
// get the ID of the event element | |
var the_date = $(this).attr("id"); | |
// find the tabel cell with that same ID and append the div | |
$(this).clone().appendTo('.calendar td#' + the_date); | |
}); |