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 body = window.document.getElementsByTagName('body')[0]; | |
// Square Grid | |
(function genGrid(size) { | |
var table = document.createElement('table'); | |
table.setAttribute('border', '2'); | |
table.setAttribute('cellspacing', '0'); | |
table.setAttribute('cellpadding', '40'); | |
// This variable isn't required. | |
// Just exists to make this script code friendly so the grid size can be changed |
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
public static String[] generateTable(ArrayList<String> lines){ | |
// A list to store every single element individually | |
ArrayList<String> sl = new ArrayList<>(); | |
int length = lines.get(0).split(" ").length; // Number of individual | |
// elements | |
// Create an array of every element individually | |
for (String line : lines) { | |
String[] sp = line.split(" "); | |
for (String semiChars : sp) |
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> | |
<head> | |
<title>Dynamic Web Editor</title> | |
</head> | |
<body> | |
<style> | |
body{ | |
margin:0; | |
} | |
textarea{ |
NewerOlder