From b02cb7c54bf33dc29729fb72526e3098da611bc2 Mon Sep 17 00:00:00 2001 From: Ivan Davidov Date: Thu, 4 Jan 2018 22:51:53 +0200 Subject: [PATCH] Website updates - added the 'href' navigation system. --- docs/www/assets/js/main.js | 147 ++++ docs/www/emulator/index.html | 68 +- docs/www/index.html | 1285 ++++++++++++++++------------------ 3 files changed, 773 insertions(+), 727 deletions(-) create mode 100644 docs/www/assets/js/main.js diff --git a/docs/www/assets/js/main.js b/docs/www/assets/js/main.js new file mode 100644 index 000000000..5a97b1b1d --- /dev/null +++ b/docs/www/assets/js/main.js @@ -0,0 +1,147 @@ +function menuSwap(itemIndex) { + for(var i = 1; i <= 6; i++) { + var strItem = "item" + i; + var objItem = document.getElementById(strItem); + objItem.style.display = (i == itemIndex) ? "block" : "none"; + } +} + +function logSwap(itemIndex, show) { + for(var i = 1; i <= 7; i++) { + var showObj = document.getElementById("show" + i); + var hideObj = document.getElementById("hide" + i); + var textObj = document.getElementById("text" + i); + + if(i == itemIndex) { + if(show == true) { + showObj.style.display = "none"; + hideObj.style.display = "block"; + textObj.style.display = "block"; + } else { + showObj.style.display = "block"; + hideObj.style.display = "none"; + textObj.style.display = "none"; + } + } else if(show == true) { + showObj.style.display = "block"; + hideObj.style.display = "none"; + textObj.style.display = "none"; + } + } +} + +function defaultTab(item) { + var hrefPart = document.location.href.split('#')[1]; + + if(hrefPart == undefined) { + hrefPart = item; + } + + loadTab('#' + hrefPart); +} + +function loadTab(hrefPart) { + document.location.href=hrefPart; + loadUrl(); +} + +function loadUrl() { + var hrefPart = document.location.href.split('#')[1]; + switch(hrefPart) { + case 'home' : { + menuSwap(1); + break; + } + case 'changes' : { + menuSwap(2); + break; + } + case 'about' : { + menuSwap(3); + break; + } + case 'tutorial' : { + menuSwap(4); + break; + } + case 'emulator' : { + menuSwap(5); + break; + } + case 'download' : { + menuSwap(6); + break; + } + default: { + document.location.href='#home'; + menuSwap(1); + } + } +} + +function pageLoaded() { + defaultTab('home'); + thankYou(); +} + +function thankYou() { + var footer = document.getElementById("footer"); + var footerDiv = footer.getElementsByTagName("div")[0]; + var html = footerDiv.innerHTML; + + var sepa = ' | '; + var afterSepa = '{2}' + + var hostname = window.location.hostname; + + switch(hostname) { + case 'minimal.idzona.com' : { + html += sepa; + html += afterSepa.replace("{1}", 'microweber.com').replace("{2}", 'Microweber CMS'); + + footerDiv.innerHTML = html; + + break; + } + case 'skamilinux.hu' : { + html += sepa; + html += 'Hosted by skamilinux.hu - thank you!'; + + footerDiv.innerHTML = html; + + break; + } + case 'minimal.linux-bg.org' : { + html += sepa; + html += 'Hosted by linux-bg.org - thank you!'; + + footerDiv.innerHTML = html; + + break; + } + case 'ivandavidov.github.io' : { + document.getElementById('hm5').style.display="none"; + + document.getElementById('dl2').style.display="none"; + document.getElementById('dl5').style.display="none"; + document.getElementById('dl6').style.display="none"; + + document.getElementById('gh1').style.display="none"; + + html += sepa; + html += 'Development website - may not be fully functional.'; + + footerDiv.innerHTML = html; + + break; + } + default: { + if(hostname != "") { + html += sepa; + html += afterSepa.replace("{1}", hostname).replace("{2}", hostname); + + footerDiv.innerHTML = html; + } + } + } +} diff --git a/docs/www/emulator/index.html b/docs/www/emulator/index.html index 230ec376e..fdd26afec 100644 --- a/docs/www/emulator/index.html +++ b/docs/www/emulator/index.html @@ -1,54 +1,48 @@ - - - - - - - Minimal Linux Live - PC emulator - - + + + + + + Minimal Linux Live - PC emulator +
- Minimal Linux Live (version 20-Jan-2017) + Minimal Linux Live (version 20-Jan-2017)
-
-
-
- +
+
-
- This is JavaScript based PC emulator which works entirely in your browser and some OS features may not behave properly in it. All CPU instructions are emulated via JavaScript and the boot process may take 10-20 minutes. + This is JavaScript based PC emulator which works entirely in your browser and some OS features may not behave properly in it. All CPU instructions are emulated via JavaScript and the boot process may take 10-20 minutes.
- \ No newline at end of file diff --git a/docs/www/index.html b/docs/www/index.html index 868ec966c..ae00e9b16 100644 --- a/docs/www/index.html +++ b/docs/www/index.html @@ -1,705 +1,610 @@ - - Minimal Linux Live - + + - - - - + + + Minimal Linux Live + + + - -
- - -
-
-
-

Home

-
-
-
-
- Minimal Linux Live is a tiny Linux distribution, which is designed to be built from scratch by using a collection of automated shell scripts. Minimal Linux Live offers a core environment with just the Linux kernel, GNU C library and BusyBox userland utilities. Additional software can be included in the ISO image at build time by using a well-documented configuration file. Minimal Linux Live can be downloaded as a pre-built image, built from scratch or run in a web browser by using a JavaScript PC emulator. -
-
-
 
-
-
- -
-
-
 
-
-
- Steps to follow if you want to build your own Minimal Linux Live ISO image file: -
-
-
 
-
-
-
    -
  • - Get the latest source code archive from the download section. -
  • -
  • - Extract the source code archive. Note that even though the extracted scripts are relatively small in size (~1MB), you need ~2GB free disk space for the actual build process. -
  • -
  • - Resolve the build dependencies (e.g. GCC, make, etc.). On Ubuntu you can use the following command: -
     
    -      - sudo apt install wget make gawk gcc bc xorriso -
  • -
  • - Execute the script build_minimal_linux_live.sh and get some coffee. The whole build process should take less than 30 minutes on a modern computer. -
  • -
  • - In the end you will find the generated ISO image file minimal_linux_live.iso in the same folder where you started the build process. -
  • -
-
-
-
-
- The default build process for version xx-Jan-2018 generates ~9MB ISO image, but you can make the ISO image even smaller (~8MB) if you exclude the default overlay bundles from the main .config file. -
-
-
 
-
-
- If your build fails for some reason, most probably there are unresolved build dependencies. Please have in mind that the build dependencies can vary a lot depending on the Linux OS that you use and the software that you have already installed. If you still have troubles, you should be able to identify the failing script from the console output. You may find it useful to enable "debug" logging in the failing shell script like this: set -ex. Manually run the failing script and identify the failing part. If you are unable to find a solution to your problem, then you can ask someone more experienced Linux guy around you or as alternative you can submit an issue. -
-
-
 
-
-
- You can run the ISO image in virtual machine, e.g. QEMU, VirtualBox or VMware Workstation Player (free for non-commercial use). You can also burn the ISO image file on CD/DVD or on USB flash device by issuing dd if=minimal_linux_live.iso of=/dev/xxx where /dev/xxx is your USB flash device. -
-
-
 
-
-
- The generated ISO image file contains Linux kernel, GNU C library compiled with default options, BusyBox compiled with default options, quite simple initramfs structure and some "overlay bundles" (the default build process provides few overlay bundles). You don't get Windows support out of the box, nor you get any fancy desktop environment. All you get is a simple shell console with default BusyBox applets, network support via DHCP and... well, that's all. This is why it's called "minimal". -
-
-
 
-
-
- Note that by default Minimal Linux Live provides support for legacy BIOS systems. You can change the build configuration settings in the .config file and rebuild MLL with support for modern UEFI systems. -
-
-
 
-
-
- All build scripts are well organized and quite small in size. You can easily learn from the scripts, reverse engineer the build process and later modify them to include more stuff (I encourage you to do so). After you learn the basics, you will have all the necessary tools and skills to create your own fully functional Linux based operating system which you have built entirely from scratch. -
-
-
 
-
-
- You are encouraged to read the tutorial which explains the MLL build process. The same tutorial, along with all MLL source code, can be found in the ISO image structure in the /minimal/rootfs/usr/src directory. -
-
-
 
-
-
- Below you can find several screenshots form version 20-Jan-2017 which demonstrate what the MLL environment looks like. -
-
-
 
-
-
- - Minimal Linux Live - -
-
- - Minimal Linux Live - -
-
- - Minimal Linux Live - -
-
-
 
-
-
- - Minimal Linux Live - -
-
- - Minimal Linux Live - -
-
- - Minimal Linux Live - -
-
-
 
-
-
- - Minimal Linux Live - -
-
- - Minimal Linux Live - -
-
- - Minimal Linux Live - -
-
-
- - - - - -
 
-
 
+ +
-
 
- + +