Skip to content

Instantly share code, notes, and snippets.

// possible words
var words = ["lazy", "crackers", "hello", "cruel", "world", "bears", "need", "not", "apply"];
// characters
var puzzle = " \
r b f x w \
h e l l o \
o a h c r \
c r u e l \
v s u f d \
// possible words
var words = ["lazy", "crackers", "hello", "cruel", "world", "bears", "need", "not", "apply"];
// characters
var puzzle = " \
r b f x w \
h e l l o \
o a h c r \
c r u e l \
v s u f d \
<?php
/**
* Intergrates Flex Book web pages
*
*/
function flex_book_node_view($node) {
if($node->type == 'flex_book'){
$load_js = $node->field_load_js;//calls the field and makes it load.js
foreach($load_js['und'] as $js_file) { // gets the und from laod.js
@justinmarsan
justinmarsan / flexbook
Created June 11, 2012 06:48 — forked from tsavory/all fixed I guess
first attempt
<?php
/**
* Intergrates Flex Book web pages
*
*/
function flex_book_node_view($node, $view_mode ) {
if($node->type == 'flex_book'){
$load_js = $node->field_load_js;
var_dump($load_js);