Skip to content
This repository has been archived by the owner. It is now read-only.
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (18 sloc) 596 Bytes
<!-- Added as test -->
<script type="text/javascript">
// Changes background color of the header.
// Note: JavaScript code should not be hard
//coded into the view template. It&apos;s done
// here to simplify the code example.
function setColor(id, color) {
document.getElementById(id).style.backgroundColor = color;
<div id="{{mojit_view_id}}" class="mojit">
<h2 id="header">{{title}}</h2>
<ul class="toolbar">
<li><a href="#" onClick="setColor(&apos;header&apos;,&apos;{{rgb}}&apos;);">{{id}}</a></li>
You can’t perform that action at this time.