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
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import './index.css'; | |
function Square(props){ | |
const winningSquareStyle = { | |
backgroundColor: '#ccc' | |
}; | |
return ( |
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
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import './index.css'; | |
function Square(props){ | |
return ( | |
<button className="square" onClick={props.onClick}> | |
{props.value} | |
</button> | |
); |
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
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import './index.css'; | |
function Square(props){ | |
return ( | |
<button className="square" onClick={props.onClick}> | |
{props.value} | |
</button> | |
); |
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
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import './index.css'; | |
function Square(props){ | |
return ( | |
<button className="square" onClick={props.onClick}> | |
{props.value} | |
</button> | |
); |
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
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import './index.css'; | |
function Square(props){ | |
return ( | |
<button className="square" onClick={props.onClick}> | |
{props.value} | |
</button> | |
); |
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
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import './index.css'; | |
function Square(props){ | |
return ( | |
<button className="square" onClick={props.onClick}> | |
{props.value} | |
</button> | |
); |
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
// Based on https://github.com/jquery-boilerplate/jquery-boilerplate/wiki/Extending-jQuery-Boilerplate | |
// the semi-colon before function invocation is a safety net against concatenated | |
// scripts and/or other plugins which may not be closed properly. | |
;( function( $, window, document, undefined ) { | |
"use strict"; | |
// undefined is used here as the undefined global variable in ECMAScript 3 is | |
// mutable (ie. it can be changed by someone else). undefined isn't really being |
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 | |
/** | |
* Prev Next Module utility function | |
*/ | |
function previous_next_node_pn_node($node, $mode = 'n') { | |
// If the Previous/Next API's helper function does | |
// not exist, exit function. | |
if (!function_exists('prev_next_nid')) { | |
return NULL; |
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 ($) { | |
// Carousel initialisation | |
Drupal.behaviors.carousel = { | |
attach: function (context, settings){ | |
// Selectors | |
var carousel = '.main-carousel'; | |
var previousLink = '.js-carousel-pager .prev a'; | |
var nextLink = '.js-carousel-pager .next a'; |
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
.js-ajax-loader a.use-ajax{ | |
/* Hide AJAX links by default, let JavaScript show them if enabled. */ | |
display:none; | |
} |
NewerOlder