Find file
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (43 sloc) 1.56 KB
<!dOCtYPE html>
<html lang="en">
<link rel="stylesheet" href="./bootstrap/css/bootstrap.min.css">
<!--[if lt IE 9]>
<script src=""></script>
<div class="container">
<div class="row">
<div class="span12">
<h1>Try out Clojurescript</h1>
<strong>Run these forms first, it will get the page ready for you to interact with it</strong><br>
<strong>If it takes longer than ~ 15 seconds, refresh this page and it should load immediately</strong><br>
#box {
width: 100px;
height: 100px;
background-color: red;
<div id="box" class="rect"></div>
(ns cljs-demo.core)
<pre style="display:none;">
;; interact live w/ the browser
(set! (.-height (.-style box)) "300px")
(set! (.-height (.-style box)) "100px")
(set! (.-backgroundColor (.-style box)) "blue")
(set! (.-backgroundColor (.-style box)) "red")
;; interop, can always call methods with .foo
(.getElementById js/document "box")
<script type="text/javascript" src="main.js"></script>