Skip to content

Instantly share code, notes, and snippets.

View theKevinmoyouknow's full-sized avatar

theKevinmoyouknow

View GitHub Profile
<div id="tictactoe"><span id="title">CONNECT 5</span><span id="subtext">Kevin Mo 2016</span></div>
$fullred: #ff0000;
body {
font-family: Helvetica, Verdana
}
p {
padding: 7px 10px;
}
#demo {
border: 1px solid $fullred;
}
/*
* A complete connect 5 widget. Just include this script in a
* browser page and enjoy. A connect 5 game will be included
* as a child element of the element with id "connect5". If the
* page has no such element, it will just be added at the end of
* the body.
*/
(function () {
var squares = [], //stores all pieces on the board
name: Connect 5
description: Connect five pieces horizontally, vertically, or diagonally to win!
authors:
- Kevin Mo
resources:
- http://some.url.com/some/file.js
- http://other.url.com/other_filename.css
normalize_css: no
wrap: b
panel_js: 1
<!DOCTYPE html>
<body>
<div id="newCards" >
<center>
Front:<input type="text" id="newFront" name="front"/>
Back: <input type="text" id="newBack" name="back"/>
<input value="Add" type="button" onclick="userEnter();"/>
</center>