Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
narcissus: hide more elements on startup, tweak hoverbox sizes a bit
  • Loading branch information
koenkooi committed Feb 3, 2010
1 parent fd0f758 commit 6fada00
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
19 changes: 9 additions & 10 deletions index.php
Expand Up @@ -17,6 +17,9 @@ function initForm() {
toggleVisibility('imagetypebox');
toggleVisibility('imagename');

toggleVisibility('buildbutton');
toggleVisibility('patchbox');

environmentChange();
}

Expand All @@ -34,9 +37,7 @@ function environmentChange() {

<link rel="stylesheet" type="text/css" title="dominion" href="css/dominion.css" media="screen" />
</head>
<body onLoad="initForm() ; launchWindow(dialog);">

<?
<body onLoad="initForm() ; launchWindow(dialog);"><?
/* Narcissus - Online image builder for the angstrom distribution
* Koen Kooi (c) 2008, 2009 - all rights reserved
*/
Expand Down Expand Up @@ -185,11 +186,7 @@ function config_dropdown()


?>

<form name="entry_form" onsubmit="javascript:configureImage();return false">

<!-- #dialog is the id of a DIV defined in the code below -->
<div id="boxes">
<form name="entry_form" onsubmit="javascript:configureImage();return false"><!-- #dialog is the id of a DIV defined in the code below --><div id="boxes">
<div id="dialog" class="window">
<div id="welcomedialog">
Welcome!<br/><br/>This is an online tool to create so called 'rootfs' images for your favourite device. This wizard will guide through the basic options and will close to let you select the additional packages you want.<br/>
Expand Down Expand Up @@ -262,7 +259,7 @@ function config_dropdown()
<input type="text" name="name" id="name" value="random-<?print(substr(md5(time()),0,8));?>"/>
<!-- close button is defined as close class -->
<table width='100%' valign='bottom'><tr><td align='left'><a href="#environment" onClick="toggleVisibility('imagename') ; toggleVisibility('imagetypebox');">&lt; Image type</a></td>
<td align='right'><a href="#final" onClick="$('#mask, .window').hide(); toggleVisibility('packageblock'); toggleVisibility('imagename');">Package selection &gt;</a></td></table>
<td align='right'><a href="#final" onClick="$('#mask, .window').hide(); toggleVisibility('packageblock'); toggleVisibility('buildbutton'); toggleVisibility('patchbox'); toggleVisibility('imagename');">Package selection &gt;</a></td></table>

</div>

Expand Down Expand Up @@ -307,7 +304,9 @@ function config_dropdown()
</div>
</div>

<div id="buildbutton">
<center><input type="submit" value="Build me!"/></center></form>
</div>

<br clear='all'/>
<div id="beverage"></div>
Expand All @@ -317,6 +316,6 @@ function config_dropdown()
<div id="image_progress"></div>
<div id="imgstatus"></div>

<br/><br/>Patches are welcome for the <a href="http://dominion.thruhere.net/git/cgit.cgi/narcissus/">narcissus sources</a>
<div id="patchbox"><br/><br/>Patches are welcome for the <a href="http://dominion.thruhere.net/git/cgit.cgi/narcissus/">narcissus sources</a></div>
</body>
</html>
6 changes: 3 additions & 3 deletions scripts/js/internal_request.js
Expand Up @@ -245,8 +245,8 @@ function launchWindow(id)
// var id = $(this).attr('href');

//Get the screen height and width
var maskHeight = $(document).height();
var maskWidth = $(window).width();
var maskHeight = $(document).height() * 0.99;
var maskWidth = $(window).width() * 0.99;

//Set height and width to mask to fill up the whole screen
$('#mask').css({'width':maskWidth,'height':maskHeight});
Expand All @@ -261,7 +261,7 @@ function launchWindow(id)
var winW = $(window).width();

$(document.getElementById('dialog')).css('width' , winW/2);
$(document.getElementById('dialog')).css('height' , winH*0.8);
$(document.getElementById('dialog')).css('height' , winH*0.7);
$(id).height = winH*0.75;
if($(id).height > $(document.getElementById('dialog')).height) {
$(document.getElementById('dialog')).css('height' , $(id).height);
Expand Down

0 comments on commit 6fada00

Please sign in to comment.