gizra / cdl Goto Github PK
View Code? Open in Web Editor NEWCasa del Lector
Home Page: http://gizra.github.io/CDL/
Casa del Lector
Home Page: http://gizra.github.io/CDL/
some nodes are children of a node but we dont want to show them like the normal children. we call them "bastard" nodes, and they show as hollow circle (see #14).
a bastard node is signified by :_:
in the beginning of the title.
bastard nodes may have children of their own - we still need to get visual representation of that.
via idA
and idB
we reach Entry
<Entry>
<guid>49A12098-E17B-065E-FA93-4A4F4EDB1EBD</guid>
<EntryObjects>
<EntryObject>
<objectType>0</objectType>
<objectID>5F686845-0FE0-05B2-DA4E-F175EF995458</objectID>
</EntryObject>
</EntryObjects>
<body>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0
Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta name=&quot;generator&quot; content=&quot;EditLive!
7.6.2.10&quot; /&gt;
&lt;meta name=&quot;generator&quot; content=&quot;TheBrain
7.0.4.5&quot; /&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;
charset=UTF-8&quot; /&gt;
&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
body {
font-family: Arial; font-size: small; background: #ffffff; color:
#000000;
}
p {
margin-top: 0pt; margin-bottom: 0pt;
}
--&gt;
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt;One of the most distinct characteristics of the Nazi
regime was its ideology of the&amp;#160; supremacy of the Aryan race
and its detestation of the Jews and other groups. In 1942, in the
Wannsee conference, the Nazis decided to implement a plan called the
&#8220;Final Solution of the Jewish Question&#8221;. After that
the Jews of Europe were systematically murdered in the extermination
camps as part of the Final Solution. In some of the camps permanent gas
chambers were erected.&lt;/p&gt;
&lt;p&gt;By 1945 6,000,000 Jews, the majority of the Jews in
Europe, were dead.&lt;/p&gt;
&lt;p&gt;For more on the Holocaust follow the link to Yad Vashem&apos;s
website.&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;
</body>
<format>HTML</format>
<creationDateTime>2013-10-15 15:06:26.000 @+0200</creationDateTime>
<modificationDateTime>2013-10-27 16:53:25.386 @+0200
</modificationDateTime>
</Entry>
<body>
- the text. Keep only <p><strong><em><a>
when clicking on a node in the map view in FF, nothing happens (works fine on Chrome)
lower priority for now
we need to standardize on utf-8 - not sure which enc we're getting from the brain
see http://gizra.github.io/CDL/pages/05C16366-E98F-8859-A0D8-AA8FE3251A80/index.html
Move the parsing logic from the application script, to a task in Gruntfile.js.
cc @amitaibu removing the red lines for brothers etc - we'll just show the focused node as red
in the exhibition, there will be QR codes which users will scan and get a URL from.
that URL will place the user in the tree view, focused on a certain item.
this means we need to allow linking to a particular item in the view - ie, in addition to linking to an item page (eg /page/some-item) we'd also have a URL for /#item/some-time which goes to the tree view.
let me know if the above isn't clear :)
cc @amitaibu at the moment we need to double click a node to see its content page. that's the correct behavior - but it doesn't work on a touch screen.
it needs to work as follows: first click zooms on the node, 2nd click opens the content page.
we want the network to look like a "solar system" rather than a tree. in order to achieve this, instead of using a top->bottom we'll display the nodes as a circle. Here's an example:
note that the big circles are the top children (ie the sons of the core node). the circles that connect everything together (give it the "solar system" look) are mostly there for design reasons, we can handle them later on.
@niryariv
We need to clarify, if the brother nodes "black nodes in the same orbit" will be expand when the nodes one node of the orbit is selected.
Need to set a folder "CDL" in the build process with the command grunt server:dist
URL production.
http://gizra.github.io/CDL/
URL test dist locally.
http://127.0.0.1:9000/CDL/
Issue #26 realated
Modify the actual Gruntfile.js and reorder the actual tasks of CDL (CDL. cdlPrepare and generate) and reorder:
Name task: CDL
Subtasks:
Example to call with grunt:
grunt CDL:prepare
I uploaded a new XML file which consists of 5 brains merged into one - suggest we use this as the base XML, as this is the most updated we have and should include cases like chrono + children etc
https://drive.google.com/file/d/0B7Lzf69iarhdaVA4MjlVTDh5enM/edit?usp=sharing
we can use this library:
https://github.com/jackmoore/colorbox
We found elements in the xml data (Example: National Library of Israel) that not are under the principal root "Torah+Basch 10.11.13"
@niryariv Could you indicate what is the design of the data in the diagram, expected by the client?
thanks
currently, to focus on a node (ie show it red) the user needs to click on it.
we want to experiment with a new method: as the user moves the map, the node that's centered.
to implement, we'll define a circle in the center of the screen, with a certain radius (say 200px?). when a node is on that field, we consider it focused. if there's more than one node on that field, we'll consider the one closest to the center as focused.
@amitaibu @ceoaliongroo what do you think? sounds doable?
Check clipping a shape with fill the text.
references:
http://bl.ocks.org/mbostock/3151318
http://commons.oreilly.com/wiki/index.php/SVG_Essentials/Text
Chronological points and their children will be under the parent point.
related to #1
<Thought>
<guid>5F686845-0FE0-05B2-DA4E-F175EF995458</guid>
<name>The Holocaust</name>
<label>& ... #1501;
</label>
<creationDateTime>2013-10-15 14:30:22.000 @+0200</creationDateTime>
<realModificationDateTime>2013-10-20 16:17:47.000 @+0200
</realModificationDateTime>
<displayModificationDateTime>2013-10-27 16:53:25.387 @+0200
</displayModificationDateTime>
<activationDateTime>2013-11-03 16:57:19.993 @+0200</activationDateTime>
<linksModificationDateTime>2013-11-03 17:00:29.592 @+0200
</linksModificationDateTime>
<isType>0</isType>
<color>0</color>
<accessControlType>0</accessControlType>
</Thought>
via guid
we reach the Link
:
<Link>
<guid>1D45C65C-6B66-4666-4A1D-546F8593C55F</guid>
<idA>5F686845-0FE0-05B2-DA4E-F175EF995458</idA>
<idB>72F39E01-4AA4-B0F0-A73F-6A5A2A39C293</idB>
<dir>2</dir>
<isBackward>0</isBackward>
<name></name>
<labelForward></labelForward>
<labelBackward></labelBackward>
<creationDateTime>2013-11-03 17:00:21.214 @+0200</creationDateTime>
<modificationDateTime>2013-11-03 17:00:29.590 @+0200
</modificationDateTime>
<isType>0</isType>
<color>0</color>
<thickness>0</thickness>
<strength>0</strength>
<meaning>0</meaning>
<linkTypeID>A612649B-7311-4A04-D5F9-0D53879CACE3</linkTypeID>
</Link>
<idA>
and <idB>
describe reference between 2 Thought
<dir>
- direction (father, son, sibling, bastard)<linkTypeID>
via idA
and idB
we reach Entry
<Entry>
<guid>49A12098-E17B-065E-FA93-4A4F4EDB1EBD</guid>
<EntryObjects>
<EntryObject>
<objectType>0</objectType>
<objectID>5F686845-0FE0-05B2-DA4E-F175EF995458</objectID>
</EntryObject>
</EntryObjects>
<body>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0
Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta name=&quot;generator&quot; content=&quot;EditLive!
7.6.2.10&quot; /&gt;
&lt;meta name=&quot;generator&quot; content=&quot;TheBrain
7.0.4.5&quot; /&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html;
charset=UTF-8&quot; /&gt;
&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
body {
font-family: Arial; font-size: small; background: #ffffff; color:
#000000;
}
p {
margin-top: 0pt; margin-bottom: 0pt;
}
--&gt;
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt;One of the most distinct characteristics of the Nazi
regime was its ideology of the&amp;#160; supremacy of the Aryan race
and its detestation of the Jews and other groups. In 1942, in the
Wannsee conference, the Nazis decided to implement a plan called the
&#8220;Final Solution of the Jewish Question&#8221;. After that
the Jews of Europe were systematically murdered in the extermination
camps as part of the Final Solution. In some of the camps permanent gas
chambers were erected.&lt;/p&gt;
&lt;p&gt;By 1945 6,000,000 Jews, the majority of the Jews in
Europe, were dead.&lt;/p&gt;
&lt;p&gt;For more on the Holocaust follow the link to Yad Vashem&apos;s
website.&lt;/p&gt;
&lt;/body&gt;
&lt;/html&gt;
</body>
<format>HTML</format>
<creationDateTime>2013-10-15 15:06:26.000 @+0200</creationDateTime>
<modificationDateTime>2013-10-27 16:53:25.386 @+0200
</modificationDateTime>
</Entry>
<body>
- the text. Keep only <p><strong><em><a>
<Attachment>
<guid>0F1A495D-CD86-6FD4-FB2B-EF7080D63A18</guid>
<AttachmentEntries>
<attachmentEntryID>49A12098-E17B-065E-FA93-4A4F4EDB1EBD
</attachmentEntryID>
</AttachmentEntries>
<objectID>5F686845-0FE0-05B2-DA4E-F175EF995458</objectID>
<name>Twin Holocaust survivors describe arriving at Auschwitz</name>
<attachmentType>3</attachmentType>
<location>http://www.youtube.com/watch?v=MWJyjAYyF8E</location>
<dataLength>0</dataLength>
<format></format>
<creationDateTime>2013-10-15 15:06:26.973 @+0200</creationDateTime>
<modificationDateTime>2013-10-15 15:06:27.306 @+0200
</modificationDateTime>
</Attachment>
<attachmentType>
- link or file<objectID>
- connection to a Thought
< location>
- can be a media file (e.g. image) or link (e.g. youtube)In the chart when the url #/[guid] change the guid.
Look up the element with the node.guid and focus on it.
This task is about moving logic into jekyll, so we can use grunt gh-pages
to push our builds to Github pages.
Need to remove '[' and ']' characters from filename of attachment and the The Brain data automatically.
Because, an error with usemin:htmlmin.
zip file from Shay is here - seems to contain the entire dir structure
@niryariv If we want the design to be responsive it is highly recommended to stick to a proper grid system. Like this we won't need to define width and margins, as doing it is wrong -- since we are not dealing with a fix layout.
all lines are black 3px, except:
brothers: red
bastard: 1px
chrono sons: like above, 13px apart
Circles:
focused node: 220px diameter, red
father/son: 25px diameter, black
brother: 25px diameter, red
Between parents & all sons a light grey (#f5f5f5) triangle
@niryariv we can add some background and explanation about the project, and credits
@ceoaliongroo add the basic steps needed for installation (shouldn't be more than a few lines)
Requirements:
ruby 1.9
node 10
Bundler (gem install bundler
)
bundle install
npm install
bower install
see here
everything is Miso font, uppercase only, black & left aligned unless stated otherwise.
focused node: white, bold, font size 35px, line height 43px. should be inside a 150x120px box
parent/son: font size 19px, line height 22px, max width 150px
brother: like parent/son, color red. below the circle in a 110x60px box
bastard: like parent/son, font weight light
chrono son: 19px font size, bold, centered
cc @amitaibu
https://drive.google.com/a/gizra.com/file/d/0B7Lzf69iarhddGk4MHllaUJUOEk/edit?usp=sharing
note the the embeds will be 3rd party (ie look like the provider, rather than the design here) - youtube & soundcloud
<p align=""justify"">
<font face=""Calibri," serif"="">After the war was over the Scroll was returned to the few survivors of the
community, and the honorary president of the community, Mr. Moshe Sauriano gave them to the Ben Atar family, to
be brought to the NLI, in memory of the Jews from Rhodes who were exterminated.
</font>
</p>
<ul type=""circle"">
<li>Born in Cordoba in 1138, Maimonides grew up during the rule of the Berber dynasty of the <i>Murabitun</i> (Almoravids). Under their rule the Jewish and the Christian communities were protected according to Muslim law.</li>
</ul>
i think it's related with the style in the the brain data. Issue related #67
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.