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
function addButton(toolbarId, buttonId, label, iconPath, firstRun) { | |
var toolbar = document.getElementById(toolbarId); | |
var toolbarButton = document.createElement("toolbarbutton"); | |
toolbarButton.setAttribute("id", buttonId); | |
toolbarButton.setAttribute("type", "button"); | |
toolbarButton.setAttribute("removable", "true"); | |
toolbarButton.setAttribute("class", | |
"toolbarbutton-1 chromeclass-toolbar-additional"); | |
toolbarButton.setAttribute("label", label); | |
toolbarButton.style.listStyleImage = "url(" + iconPath + ")"; |
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
<canvas id="sakura"></canvas> | |
<div class="btnbg"> | |
<button type="button" onclick="toggleAnimation(this)">Stop</button> | |
</div> | |
<!-- sakura shader --> | |
<script id="sakura_point_vsh" type="x-shader/x_vertex"> | |
uniform mat4 uProjection; | |
uniform mat4 uModelview; | |
uniform vec3 uResolution; |