GithubHelp home page GithubHelp logo

qjack001 / web-based-windows Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 1.0 614 KB

An experimental, brutalist website that imitates early Windows operating systems.

Home Page: https://qjack001.github.io/Web-Based-Windows/

License: MIT License

JavaScript 14.11% CSS 26.17% HTML 59.72%
website brutalism-webdesign windows brutalist

web-based-windows's Introduction

Web-Based-Windows is a stupid website that imitates the look and feel of early Windows operating systems.
It was created to experiment with draggable and resizable divs, as well as brutalist website design.

Key FeaturesHow to UseContributingCreditsAuthorsLicense

screenshot

Key Features

For a live preview, visit qjack001.github.io/Web-Based-Windows/.

Resize windows:

screenshot

Move windows:

screenshot

Close and hide windows:

screenshot

How to Use

To use these windows in your own project, either fork this repository, or download the required files (draggable.js and style.css) individually.

Add the required files to the <head> element of the HTML file, and place any additional scripts or style sheets below:

<head>
  ...
  <link href="https://fonts.googleapis.com/css?family=VT323" rel="stylesheet">
  <link href="style.css" rel="stylesheet" type="text/css">
  <script src="draggable.js" type="text/javascript"></script>
</head>

To create a window, set up a new div in the <body>. Replace ADD_CUSTOM_ID with a new unique ID, and make sure that the div below it has the exact same ID, with header added to the end.

<div class="window" id="ADD_CUSTOM_ID"> 
  <div class="window-header" id="ADD_CUSTOM_IDheader"> 
    TITLE_OF_WINDOW 
    <button onclick="this.parentNode.parentNode.style.display = 'none';">X</button> 
    <button onclick="this.parentNode.parentNode.style.display = 'none';">_</button> 
  </div> 
  CONTENTS_OF_WINDOW 
</div> 
<script>dragElement(document.getElementById("ADD_CUSTOM_ID"));</script>

Custom window styles can be achieved by importing a separate stylesheet, below the required ones, and appending a newly styled class to the main window's classes. For reference, an example.html file has been included in the project.

Contributing

If you notice a bug or have a feature request, please submit an issue. If you would like to contribute to the development of the project, please create a new pull request.

Credits

Authors

Jack Guinane - Programming, designing, and maintaining.

License

This project is licensed under the MIT License - see the LICENSE file for details.

web-based-windows's People

Contributors

qjack001 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

xneuralagent

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.