Giter Club home page Giter Club logo

start's Introduction

Start Page

Select colour tone, change your search pages, drop in your favourite sites & icons, share geolocation for local weather data

img preview

Usage

  1. Cursor hides with delay, everything can be done w/ a keyboard
  2. Use L & R Arrow keys to change search sites.
  3. Up Arrow to pull previous searches
  4. Down Arrow (to leave search focus), then any Arrow keys to navigate tiles.

About

  • Use 'Ctrl + C' to randomly generate a new base colour. 'Ctrl + X' for night mode.

  • Tile nav isn't grid based, so you can add or remove any and change their size, or container width and arrow navigation will stay intact. (NOTE) may get a little weird with odd numbers that leave like 1 tile on a row or something.

  • I just threw in Font Awesome Icons. Use whatever icons you prefer (you'll have to style them), or flip through there and grab whatever works.

  • Add or remove any search sites; just match up placeholder, url slug, and mini icon at the same index in the three array vars below. The little 'mini search icons' below will read the length of the array & increase or decrease accordingly.

  • Mini search icons are clickable, and touch swipe within the search box is enabled to change search sites.

  • Weather imgs are lazy loaded after weather data comes back from the server, so it may take a few seconds to display. New data is polled every 20000ms, background images fade accordingly. Swap w/ semi-transparent, desaturated, compressed pngs however you please. All of the possible weather descriptions I have seen thus far are listed in comments

  • IP address now updates with network change

Customize Options

  • A few vars in main.js:
// BASE HUE VALUE (0-360)
var cpbh = 264;

// SEARCH PLACEHOLDERS (use whatever string you want to display)
var searchPl = [' duckduckgo', ' google'];

// SEARCH SITE URLS (run a search & grab the url minus query string [if it uses one..])
var searchUrlArray = ['https://duckduckgo.com/?q=', 'https://google.com/#q='];

// SEARCH SITE ICONS (place in some corresponding icons)
var searchIconArray = ['<i class="fa fa-globe"></i>', ...];

Sources

Weather

Scripts

Vis


Bugs

  • clicking on placeholder icon brings back previous search

  • can enter blank input for search, then search array logs blank search for ^ functionality

To-Do

  • use OpenWeatherMap instead of simpleWeather yahoo api (kinda unreliable)

  • paste from clipboard

  • web app manifest & service worker

  • (bug) ctrl-disable gets stuck down? disabling a key, or fuxxing w/ backspace

  • use other icons

  • var for light/dark mode

  • source/cite images, scripts

  • more specific weather images

More

Check out my website at nicfontaine.com
Twitter: @ngpfontaine

License

Use it, break it, complain, wtvr.

start's People

Contributors

nicfontaine avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

visionarylab

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.