Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 33f881c09d
Fetching contributors…

Cannot retrieve contributors at this time

75 lines (60 sloc) 1.833 kB
<style>
body {
min-width:357px;
overflow-x:hidden;
font-family: Helvetica;
font-size: 12px;
}
a{text-decoration: none;}
a:hover{text-decoration: underline;}
ul{margin: 0;padding: 0;list-style-type: none;}
#links .block{ float: left; width: 32%;}
.clear{ clear: left; }
.clear-block{ clear: left; padding-top: 10px;padding-bottom: 10px;}
h2, h3{
margin: 0;
padding: 0;
}
h2, h3{margin-bottom: 10px;}
</style>
<script>
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function(data) {
if (xhr.readyState == 4)
{
var resp = JSON.parse(xhr.responseText);
links = document.getElementById('links');
for(var attribute in resp.bookmarks)
{
block = document.createElement('div');
block.setAttribute('class', resp.bookmarks[attribute].class);
links.appendChild(block);
title = document.createElement('h3');
title.innerHTML = attribute;
block.appendChild(title);
elenco = document.createElement('ul');
for(i = 0; i < resp.bookmarks[attribute].items.length; i++)
{
link = document.createElement('a');
link.href = resp.bookmarks[attribute].items[i].link;
link.target = '_blank';
link.innerHTML = resp.bookmarks[attribute].items[i].name;
li = document.createElement('li');
li.appendChild(link);
elenco.appendChild(li);
}
block.appendChild(elenco);
}
}
}
xhr.open('GET', 'http://www.ideato.it/layout/set/json/content/view/full/390', true);
xhr.send();
</script>
<h2>Bookmarks</h2>
<div id="links"></div>
<div class="clear"></div>
<h2>Tools</h2>
<form action="https://project.ideato.it/projects/test/timelog/edit" target="_blank" >
#<input type="text" name="issue_id" id="task"/>
<input type="submit" value="Segna pomodoro" />
</form>
Jump to Line
Something went wrong with that request. Please try again.