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
<html> | |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<!--Preheader styles--> | |
<style> | |
.preheader{display:none;} | |
@media (max-device-width:480px) { | |
.preheader {display:block;} | |
} |
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
<!-- saved from url=(0034)http://dev.opusproofing.com/appup/ --> | |
<html><head> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge; chrome=1" /> | |
<title></title> | |
<style type="text/css"> | |
body{ | |
background-color:transparent;background-image:url(images/6180_iadp_news_gradient.gif); | |
background-repeat:repeat-x;background-position:top left;background-attachment:scroll; |
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 template_config(header, header_data, body, body_data){ | |
Handlebars.getTemplate = function(name) { | |
if (Handlebars.templates === undefined || Handlebars.templates[name] === undefined) { | |
$.ajax({ | |
url : 'templates/' + name + '.handlebars', | |
success : function(data) { | |
if (Handlebars.templates === undefined) { | |
Handlebars.templates = {}; | |
} | |
Handlebars.templates[name] = Handlebars.compile(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
var subjects = jQuery('#edit-field-course-subjects-taxonomy-und'); | |
function displayPrimarySubject(){ | |
var subjectVal =[]; | |
var subjectInput = subjects.find('input:checked'); | |
subjectInput.each(function(){ | |
var catVal= jQuery(this).val(); | |
subjectVal.push(catVal); | |
}); | |
var primarySubjectField= jQuery('#edit-field-primary-subject'); | |
if (subjectVal.length > 0){ |
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
//This grid is based http://philipwalton.github.io/solved-by-flexbox/ | |
//Mixins are inefficient in terms of code duplication but when post Processed | |
//By csso duplication can be removed. The point is not everything needs to happen | |
//at the preprocess stage. | |
//FLEX | |
@mixin flex { | |
display: flex; | |
flex-wrap: wrap; | |
} |
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
module.exports = function(mixin, value){ | |
switch(value){ | |
case "full": | |
var rule = {flex: "0 0 100%"}; | |
break; | |
case "1of2": | |
var rule = {flex: "0 0 50%"}; | |
break; | |
case "1of3": | |
var rule = {flex: "0 0 33.3333%"}; |
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
<input class="flex-input-field" decorator="typeahead"> |
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
filetype: javascript | |
detect: | |
filename: "(\\.js$|\\.es[5678]?$)" | |
header: "^#!.*/(env +)?node( |$)" | |
rules: | |
- constant.number: "\\b[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\\b" | |
- constant.number: "\\b[-+]?([0-9]+\\.[0-9]*|[0-9]*\\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?" | |
- constant.number: "\\b[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?" |
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
import React, { Component, Fragment, Children } from 'react'; | |
import { render, unmountComponentAtNode } from 'react-dom'; | |
import PropTypes from 'prop-types'; | |
export class ShadowDom extends Component { | |
constructor(props){ | |
super(props) | |
this.getTargetRef = this.getTargetRef.bind(this); | |
} | |
componentDidMount() { |
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
export const BasicUsage = (props) => { | |
const { text } = props; | |
return ( | |
<ShadowDom className={ className}> | |
<span>{ children }</span> | |
</ShadowDom> | |
) | |
} |