Skip to content

Commit 3cda935

Browse files
author
Tim Berners-Lee
committed
slow progress... tw more icons ...
1 parent 28a1020 commit 3cda935

6 files changed

Lines changed: 44 additions & 8 deletions

File tree

lib/icons/noun_346777.svg

Lines changed: 1 addition & 0 deletions
Loading

lib/icons/noun_704.svg

Lines changed: 17 additions & 0 deletions
Loading

lib/messageArea.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = function (dom, kb, subject, messageStore, options) {
2626
var a = dom.createElement('a')
2727
if (term.uri) {
2828
a.setAttribute('href', term.uri)
29-
a.addEventListener('click', UI.panes.utils.openHrefInOutlineMode, true)
29+
a.addEventListener('click', UI.widgets.openHrefInOutlineMode, true)
3030
a.setAttribute('style', 'color: #3B5998; text-decoration: none; ') // font-weight: bold
3131
}
3232
a.textContent = text
@@ -79,7 +79,7 @@ module.exports = function (dom, kb, subject, messageStore, options) {
7979

8080
var sendComplete = function (uri, success, body) {
8181
if (!success) {
82-
form.appendChild(UI.panes.utils.errorMessageBlock(
82+
form.appendChild(UI.widgets.errorMessageBlock(
8383
dom, 'Error writing message: ' + body))
8484
} else {
8585
var bindings = { '?msg': message,
@@ -208,7 +208,7 @@ module.exports = function (dom, kb, subject, messageStore, options) {
208208
})
209209
}
210210
td1.appendChild(dom.createElement('br'))
211-
td1.appendChild(anchor(UI.panes.utils.shortDate(dateString), message))
211+
td1.appendChild(anchor(UI.widgets.shortDate(dateString), message))
212212

213213
var td2 = dom.createElement('td')
214214
tr.appendChild(td2)

lib/ns.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ thisModule.ical = $rdf.Namespace('http://www.w3.org/2002/12/cal/icaltzd#')
3131
thisModule.ldp = $rdf.Namespace('http://www.w3.org/ns/ldp#')
3232
thisModule.link = thisModule.tab = thisModule.tabont = $rdf.Namespace('http://www.w3.org/2007/ont/link#')
3333
thisModule.log = $rdf.Namespace('http://www.w3.org/2000/10/swap/log#')
34+
thisModule.meeting = $rdf.Namespace('http://www.w3.org/ns/pim/meeting#')
3435
thisModule.mo = $rdf.Namespace('http://purl.org/ontology/mo/')
3536
thisModule.owl = $rdf.Namespace('http://www.w3.org/2002/07/owl#')
37+
thisModule.pad = $rdf.Namespace('http://www.w3.org/ns/pim/pad#')
3638
thisModule.patch = $rdf.Namespace('http://www.w3.org/ns/pim/patch#')
3739
thisModule.qu = $rdf.Namespace('http://www.w3.org/2000/10/swap/pim/qif#')
3840
thisModule.trip = $rdf.Namespace('http://www.w3.org/ns/pim/trip#')

lib/pad.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ padModule.notepad = function (dom, padDoc, subject, me, options) {
3535

3636
var currentNode, currentOffset;
3737

38-
table.setAttribute('style', 'padding: 1em; width:100%;');
38+
table.setAttribute('style', 'padding: 1em; overflow: auto; resize: horizontal; min-width: 40em;');
3939

4040
var upstreamStatus = null, downstreamStatus = null;
4141

@@ -66,7 +66,7 @@ padModule.notepad = function (dom, padDoc, subject, me, options) {
6666
var setPartStyle = function(part, colors, pending) {
6767
var chunk = part.subject;
6868
colors = colors || '';
69-
var baseStyle = 'font-size: 100%; font-family: monospace; width: 100%; border: none;'; // font-weight:
69+
var baseStyle = 'font-size: 100%; font-family: monospace; width: 100%; border: none; white-space: pre-wrap;'
7070
var headingCore = 'font-family: sans-serif; font-weight: bold; border: none;'
7171
var headingStyle = [ 'font-size: 110%; padding-top: 0.5em; padding-bottom: 0.5em; width: 100%;' ,
7272
'font-size: 120%; padding-top: 1em; padding-bottom: 1em; width: 100%;' ,

lib/tabs.js

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ UI.tabs.tabWidget = function(options){
2727
var subject = options.subject
2828
var dom= options.dom
2929
var box = dom.createElement('div')
30-
var orientation = options.orientation || 0
30+
var orientation = parseInt(options.orientation || "0")
3131
var flipped = orientation & 2
3232
var vertical = orientation & 1
3333
var wholetable = box.appendChild(dom.createElement('table'))
3434

3535
var tabContainer, tabElement, mainDiv
3636
var bodyDiv = dom.createElement('div')
37-
bodyDiv.setAttribute('style', 'margin:0; min-width: 50em; min-height: 50em; width:100%; height: 100%;')
37+
bodyDiv.setAttribute('style', 'resize: both; margin:0; border: 0.5em; border-style: solid; border-color: #eed; padding: 1em; min-width: 30em; min-height: 20em; width:100%;')
3838
if (vertical){
3939
var onlyTR = wholetable.appendChild(dom.createElement('tr'))
4040
var mainTD = dom.createElement('td')
@@ -75,12 +75,28 @@ UI.tabs.tabWidget = function(options){
7575
}
7676
}
7777

78+
var corners = ["2em", "2em", "0", "0"] // top left, TR, BR, BL
79+
corners = corners.concat(corners).slice(orientation, orientation + 4)
80+
corners = 'border-radius: ' + corners.join(' ') + ';'
81+
var tabStyle = corners + 'margin: 0.3em; padding: 0.7em;'
82+
var unselectedStyle = tabStyle + ' background-color: #eed; border: 0.05em 0 0.5em 0.05em; border-color: grey;' // @@ rotate border
83+
var selectedStyle = tabStyle + ' background-color: #ddc;'
84+
85+
var resetTabStyle = function() {
86+
for (var i = 0; i < tabContainer.children.length; i++){
87+
tabContainer.children[i].firstChild.setAttribute('style', unselectedStyle)
88+
}
89+
}
90+
91+
7892
var makeNewSlot = function(item){
7993
var ele = dom.createElement(tabElement)
8094
ele.subject = item
8195
var div = ele.appendChild(dom.createElement('div'))
82-
div.setAttribute('style', 'margin: 0.7em; padding: 0.5em; xborder: 0.05em solid grey; border-radius: 0.3em; background-color: #eed;')
96+
div.setAttribute('style', unselectedStyle)
8397
div.addEventListener('click', function(e){
98+
resetTabStyle()
99+
div.setAttribute('style', selectedStyle)
84100
bodyDiv.innerHTML = 'loading item ...' + item
85101
options.showMain(bodyDiv, ele.subject)
86102
})

0 commit comments

Comments
 (0)