Full-page background made with JavaScript and Canvas: the animation follows movement on non-touch devices
Based on: http://tympanus.net/Development/AnimatedHeaderBackgrounds/
A Pen by Benji Richards on CodePen.
var board = [ | |
[4, 5, '.', 8, '.', '.', 9, '.', '.'], | |
['.', 9, '.', '.', 5, 6, '.', '.', 4], | |
[1, '.', '.', '.', '.', '.', '.', '.', 7], | |
[2, 6, '.', 5, 4, '.', '.', 9, '.'], | |
['.', '.', 4, 1, '.', 2, 3, '.', '.'], | |
['.', 7, '.', '.', 6, 9, '.', 4, 8], | |
[7, '.', '.', '.', '.', '.', '.', '.', 9], | |
[8, '.', '.', 4, 9, '.', '.', 7, '.'], | |
['.', '.', 9, '.', '.', 3, '.', 2, 5], |
var board = [ | |
[4, 5, '.', 8, '.', '.', 9, '.', '.'], | |
['.', 9, '.', '.', 5, 6, '.', '.', 4], | |
[1, '.', '.', '.', '.', '.', '.', '.', 7], | |
[2, 6, '.', 5, 4, '.', '.', 9, '.'], | |
['.', '.', 4, 1, '.', 2, 3, '.', '.'], | |
['.', 7, '.', '.', 6, 9, '.', 4, 8], | |
[7, '.', '.', '.', '.', '.', '.', '.', 9], | |
[8, '.', '.', 4, 9, '.', '.', 7, '.'], | |
['.', '.', 9, '.', '.', 3, '.', 2, 5], |
pragma solidity 0.4.24; | |
import "../oraclize/oraclizeAPI_0.5.sol"; | |
import '../openzeppelin-solidity/contracts/ownership/Ownable.sol'; | |
import '../openzeppelin-solidity/contracts/math/SafeMath.sol'; | |
contract Lottery is usingOraclize, Ownable { | |
using SafeMath for uint; |
pragma solidity 0.4.24; | |
import "github.com/OpenZeppelin/openzeppelin-solidity/contracts/ownership/Ownable.sol"; | |
import "github.com/OpenZeppelin/openzeppelin-solidity/contracts/math/SafeMath.sol"; | |
contract BGAudit is Ownable { | |
using SafeMath for uint; | |
event AddedAuditor(address indexed auditor); |
Full-page background made with JavaScript and Canvas: the animation follows movement on non-touch devices
Based on: http://tympanus.net/Development/AnimatedHeaderBackgrounds/
A Pen by Benji Richards on CodePen.
//NUMBER TWO: | |
//inputs: start and end nums | |
//outputs: array of numbers between start and end | |
function range(start, end) { | |
var rangeAnswer = []; | |
if(start < end && end ){ | |
for(var x = start; x < end; x++){ | |
rangeAnswer.push(x); | |
} | |
} |