Home Register FAQ Members List Calendar Game Links Gallery
Go Back   Joystick Required Forums > Jumpgate TRI Forums > Jump's Jumpgate Tool Shed > JOSSH II
About This Page About This Page: This is a discussion on Station Production Database within the JOSSH II forums, part of the Jump's Jumpgate Tool Shed category, at Joystick Required Forums. You see anyway in there to make the root node have a bit larger and bold font?
Welcome to Joystick Required! Membership is easy and its free! And membership removes this giant ad space.

Closed Thread
 
LinkBack Thread Tools

Old 02-15-2005, 07:21 PM   #46 (permalink)
Big Daddy
 
Jump's Avatar
 
Pilot Name: JumpDemon
Faction: Solrain
Joystick: MS FF2
Join Date: May 2004
Location: Tracy, Ca.
Posts: 6,990
Jump has a spectacular aura aboutJump has a spectacular aura about
<!-- google_ad_section_start(weight=ignore) -->Jump<!-- google_ad_section_end --> is a Solrain pilot
You see anyway in there to make the root node have a bit larger and bold font?
__________________
Currently working hard to break the server...

>> Help support JSR through our Amazon store
Jump is offline  Send a message via ICQ to Jump Send a message via Yahoo to Jump
Sponsored Links


Old 02-15-2005, 08:22 PM   #47 (permalink)
Member
 
Evolution's Avatar
 
Faction: Octavius
Joystick: Cyborg evo
Join Date: Jan 2005
Location: Chicagoland
Posts: 190
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Evolution is on a distinguished road
<!-- google_ad_section_start(weight=ignore) -->Evolution<!-- google_ad_section_end --> is a Octavius pilot
Ok.. I knew nothing about CSS when you asked this question and now I know just enough beyond nothing to answer your question :P Add this to dtree.js.. The change is near the bottom. Two if statements: if(node.pid == this.root.id) set the style of the root node text.

Code:
  // Creates the node icon, url and text
  dTree.prototype.node = function(node, nodeId) {
  	var str = '<div class="dTreeNode"' + this.indent(node, nodeId);
  	if (this.config.useIcons) {
 		if (!node.icon) node.icon = (this.root.id == node.pid) ? this.icon.root : ((node._hc) ? this.icon.folder : this.icon.node);
 		if (!node.iconOpen) node.iconOpen = (node._hc) ? this.icon.folderOpen : this.icon.node;
  		if (this.root.id == node.pid) {
  			node.icon = this.icon.root;
  			node.iconOpen = this.icon.root;
  		}
 		str += '<img id="i' + this.obj + nodeId + '" src="' + ((node._io) ? node.iconOpen : node.icon) + '" alt="" />';
  	}
  	if (node.url) {
 		str += '<a id="s' + this.obj + nodeId + '" class="' + ((this.config.useSelection) ? ((node._is ? 'nodeSel' : 'node')) : 'node') + '" href="' + node.url + '"';
  		if (node.title) str += ' title="' + node.title + '"';
  		if (node.target) str += ' target="' + node.target + '"';
 		if (this.config.useStatusText) str += ' onmouseover="window.status=\'' + node.name + '\';return true;" onmouseout="window.status=\'\';return true;" ';
 		if (this.config.useSelection && ((node._hc && this.config.folderLinks) || !node._hc))
  			str += ' onclick="javascript: ' + this.obj + '.s(' + nodeId + ');"';
  		str += '>';
  	}
 	else if ((!this.config.folderLinks || !node.url) && node._hc && node.pid != this.root.id)
  		str += '<a href="javascript: ' + this.obj + '.o(' + nodeId + ');" class="node">';
  	if(node.pid == this.root.id) {
  		str += '<font class="nodeROOT">';
  	}
  	str += node.name;
  	if(node.pid == this.root.id) {
  		str += '</font>';
  	}	
  	if (node.url || ((!this.config.folderLinks || !node.url) && node._hc)) str += '</a>';
  	str += '</div>';
  	if (node._hc) {
 		str += '<div id="d' + this.obj + nodeId + '" class="clip" style="display:' + ((this.root.id == node.pid || node._io) ? 'block' : 'none') + ';">';
  		str += this.addNode(node);
  		str += '</div>';
  	}
  	this.aIndent.pop();
  	return str;
  };
Then you have to add the style to your dtree.css file.

Code:
  .dtree .nodeROOT {
  	FONT-SIZE: 20px; FONT-WEIGHT: bold;
  }
Man.. I need to learn how the hell to use CSS.
Evolution is offline  

Old 02-15-2005, 08:30 PM   #48 (permalink)
Big Daddy
 
Jump's Avatar
 
Pilot Name: JumpDemon
Faction: Solrain
Joystick: MS FF2
Join Date: May 2004
Location: Tracy, Ca.
Posts: 6,990
Jump has a spectacular aura aboutJump has a spectacular aura about
<!-- google_ad_section_start(weight=ignore) -->Jump<!-- google_ad_section_end --> is a Solrain pilot
I understand the css bit. Just the js bit still somewhat alien to me.

Instead of <font>, use a <span> tag.
Jump is offline  Send a message via ICQ to Jump Send a message via Yahoo to Jump

Old 02-15-2005, 08:33 PM   #49 (permalink)
Member
 
Evolution's Avatar
 
Faction: Octavius
Joystick: Cyborg evo
Join Date: Jan 2005
Location: Chicagoland
Posts: 190
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Evolution is on a distinguished road
<!-- google_ad_section_start(weight=ignore) -->Evolution<!-- google_ad_section_end --> is a Octavius pilot
I didn't even know <span> WAS a tag. haha.. I tried <p> and that screwed up the spacing. Tried <div> and that didn't work at all. <font> was just a prayer that happened to work lol. <span> it is then
Evolution is offline  

Old 02-15-2005, 08:41 PM   #50 (permalink)
Big Daddy
 
Jump's Avatar
 
Pilot Name: JumpDemon
Faction: Solrain
Joystick: MS FF2
Join Date: May 2004
Location: Tracy, Ca.
Posts: 6,990
Jump has a spectacular aura aboutJump has a spectacular aura about
<!-- google_ad_section_start(weight=ignore) -->Jump<!-- google_ad_section_end --> is a Solrain pilot
Yeah, span won't kick you to a new line like <p> and <div> will. CSS makes my world much easier. It's funny, with js, I look at it and I understand it. I just can't create with it yet. To much of the syntax I don't know yet. It's the opposite with PHP, MySQL, CSS, XTML, etc. I know exactly what to do there. Someday I'll spend some time and read up more on js. It's so useful sometimes.
Jump is offline  Send a message via ICQ to Jump Send a message via Yahoo to Jump

Old 02-15-2005, 08:42 PM   #51 (permalink)
Big Daddy
 
Jump's Avatar
 
Pilot Name: JumpDemon
Faction: Solrain
Joystick: MS FF2
Join Date: May 2004
Location: Tracy, Ca.
Posts: 6,990
Jump has a spectacular aura aboutJump has a spectacular aura about
<!-- google_ad_section_start(weight=ignore) -->Jump<!-- google_ad_section_end --> is a Solrain pilot
Oh yeah, it worked. Thanks.
Jump is offline  Send a message via ICQ to Jump Send a message via Yahoo to Jump

Old 02-15-2005, 08:48 PM   #52 (permalink)
Member
 
Evolution's Avatar
 
Faction: Octavius
Joystick: Cyborg evo
Join Date: Jan 2005
Location: Chicagoland
Posts: 190
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Evolution is on a distinguished road
<!-- google_ad_section_start(weight=ignore) -->Evolution<!-- google_ad_section_end --> is a Octavius pilot
No problem, dude.
Evolution is offline  

Old 02-16-2005, 05:31 AM   #53 (permalink)
Highest Order Hypocrite
 
GrimGriz's Avatar
 
Faction: non-aligned
Join Date: Jul 2004
Location: Portland
Posts: 2,673
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
GrimGriz is on a distinguished road
So, has the taste changed since you posted it?
Here's the mining data: Ore report

Aren't frames evil? So far, what I'd like to see is the real-time amounts of everything at that station, and for everything to be clickable. For example, when looking at Alpaa's I would see that there are no machined parts. I know they are local, but i'd be nice for the locals if you could just click the thing and it would take you to the appropriate item in the station you're currently in. For the imports, i'd like to be able to click them and see where they are made and their ingredients, possibly in the third frame.

As soon as I think of more features to request I will
GrimGriz is offline  

Old 02-16-2005, 05:34 AM   #54 (permalink)
Big Daddy
 
Jump's Avatar
 
Pilot Name: JumpDemon
Faction: Solrain
Joystick: MS FF2
Join Date: May 2004
Location: Tracy, Ca.
Posts: 6,990
Jump has a spectacular aura aboutJump has a spectacular aura about
<!-- google_ad_section_start(weight=ignore) -->Jump<!-- google_ad_section_end --> is a Solrain pilot
That's about what I said it was going to do, isnt it?
Jump is offline  Send a message via ICQ to Jump Send a message via Yahoo to Jump

Old 02-16-2005, 05:39 AM   #55 (permalink)
Highest Order Hypocrite
 
GrimGriz's Avatar
 
Faction: non-aligned
Join Date: Jul 2004
Location: Portland
Posts: 2,673
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
GrimGriz is on a distinguished road
Ummm, not that I saw in this thread....but me and you are on very different wavelengths so it's easy for me not to understand you. Oh, and please if you do that tree thing, have it open all the sub things be default...
I mean, if I want to not see the not-mined ingredients I can close them, but ya figure if someone wanted to click it, ofcourse they would want the ingredients, and they'd probably want to see all 3 types of ingredients as well.

One question i do have, is why have them close automatically? Say for example I'd like to compare ingredients between an alpaa and mortar (to see if i can get one to produce and not waste commods on the other). It'd be convenient to be able to have them both open.
GrimGriz is offline  

Old 02-16-2005, 06:05 AM   #56 (permalink)
Big Daddy
 
Jump's Avatar
 
Pilot Name: JumpDemon
Faction: Solrain
Joystick: MS FF2
Join Date: May 2004
Location: Tracy, Ca.
Posts: 6,990
Jump has a spectacular aura aboutJump has a spectacular aura about
<!-- google_ad_section_start(weight=ignore) -->Jump<!-- google_ad_section_end --> is a Solrain pilot
You sound bitter G.
Jump is offline  Send a message via ICQ to Jump Send a message via Yahoo to Jump

Old 02-16-2005, 09:46 AM   #57 (permalink)
Member
 
Ambrosius's Avatar
 
Pilot Name: Ambrosius
Faction: Quantar
Joystick: MS FF2
Join Date: May 2004
Location: The Stone Temple
Posts: 1,751
Nominated 2 Times in 2 Posts
Nominated TOTW/F/M Award(s): 2
Ambrosius is on a distinguished road
<!-- google_ad_section_start(weight=ignore) -->Ambrosius<!-- google_ad_section_end --> is a Quantar pilot
This looks very nice . . and all that geek talk just turns me on!

But the one very high-level comment I have is a kind of personal bias. I think the very best econ tools start with identifying need/problem areas, whereas this starts at a station which may or may not be the source of critically-needed items.

If you layered this tool below something that did this, it would be (even more) awesome.
Ambrosius is offline   Send a message via Yahoo to Ambrosius

Old 02-16-2005, 12:26 PM   #58 (permalink)
Outdated Email
 
Pujol's Avatar
 
Pilot Name: Pujol
Joystick: Attack 3
Join Date: Jul 2004
Location: Milwaukee, WI
Posts: 99
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Pujol is on a distinguished road