Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "lib/google-closure-library"]
path = lib/google-closure-library
url = https://github.com/ciembor/google-closure-library
60 changes: 0 additions & 60 deletions build.sh

This file was deleted.

18 changes: 18 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import pluginVue from "eslint-plugin-vue";


/** @type {import('eslint').Linter.Config[]} */
export default [
{
files: ["**/*.{js,mjs,cjs,vue}"]
},
{
languageOptions: {
globals: globals.browser
}
},
pluginJs.configs.recommended,
...pluginVue.configs["flat/essential"],
];
149 changes: 2 additions & 147 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,154 +11,9 @@
*.colorscheme (konsole, yakuake) and *.itermcolors
(iTerm2 for Mac)"/>
<link rel="icon" type="image/svg+xml" href="images/favicon.svg">
<link href="css/merged.css?modified=20120923" rel="stylesheet" />
<style id="outline-fix"></style>
</head>
<body onmousedown="document.getElementById('outline-fix').innerHTML='a{outline:none}';" onkeydown="document.getElementById('outline-fix').innerHTML=''">

<div id="fb-root"></div>

<div class="wrapper">

<header>
<h1><a href="http://ciembor.github.io/4bit"><span class="blue">4</span><span class="cyan">b</span><span class="magenta">i</span><span class="red">t</span></a> Terminal Color Scheme Designer</h1>
<section id="skews">
<div id="social-media" class="skew">
<div class="inner">
<div class="buttons">
<a href="https://twitter.com/share" class="twitter-share-button" data-count="none" data-via="ciembor">Tweet</a>
</div>
</div>
</div>
<a href="#" id="get-scheme-button" class="skew"><span>Download Scheme</span></a>
</section>
</header>

<div class="distance"></div>

<div id="app" class="vertical-center">
<section id="display"></section>
<section id="controls">
<section id="global-properties">
<h2>Global Properties</h2>
<h3>Hue: </h3>
<div id="hue-slider"></div>
<h3>Saturation: </h3>
<div id="saturation-slider"></div>
</section>
<section id="lightness">
<h2>Lightness</h2>
<h3>Color: </h3>
<div id="lightness-slider"></div>
<h3>Black: </h3>
<div id="black-slider"></div>
<h3>White: </h3>
<div id="white-slider"></div>
</section>
<section id="advanced">
<h2>Advanced</h2>
<ul>
<li><a href="#dye">Dye</a></li>
<li><a href="#background">Background</a></li>
<li><a href="#foreground">Foreground</a></li>
</ul>
<div id="dye">
<input type="text" id="dye-colorpicker" />
<form class="radio-group" id="dye-radio">
<input id="dye-1" type="radio" name="dye" value="none" checked="checked" /><label for="dye-1">none</label>
<input id="dye-2" type="radio" name="dye" value="all" /><label for="dye-2">all</label>
<input id="dye-3" type="radio" name="dye" value="achromatic" /><label for="dye-3">achromatic</label>
<input id="dye-4" type="radio" name="dye" value="color" /><label for="dye-4">color</label>
</form>
</div>
<div id="background">
<input type="text" id="background-colorpicker" />
<form class="radio-group" id="background-radio">
<input id="bg-1" type="radio" name="background" value="custom" checked="checked" /><label for="bg-1">custom</label>
<input id="bg-2" type="radio" name="background" value="black" /><label for="bg-2">black</label>
<input id="bg-3" type="radio" name="background" value="bright_black" /><label for="bg-3">bright_black</label>
<input id="bg-4" type="radio" name="background" value="white" /><label for="bg-4">white</label>
<input id="bg-5" type="radio" name="background" value="bright_white" /><label for="bg-5">bright_white</label>
</form>
</div>
<div id="foreground">
<input type="text" id="foreground-colorpicker" />
<form class="radio-group">
<input id="fg-1" type="radio" name="foreground" value="custom" checked="checked" /><label for="fg-1">custom</label>
<input id="fg-2" type="radio" name="foreground" value="black" /><label for="fg-2">black</label>
<input id="fg-3" type="radio" name="foreground" value="bright_black" /><label for="fg-3">bright_black</label>
<input id="fg-4" type="radio" name="foreground" value="white" /><label for="fg-4">white</label>
<input id="fg-5" type="radio" name="foreground" value="bright_white" /><label for="fg-5">bright_white</label>
</form>
</div>
</section>
</section>
</div>

</div>

<footer id="footer">
<p class="left"><a href="http://github.com/ciembor/4bit" target="_blank"><img src="images/github.png" alt="" /> Fork 4bit on GitHub.</a></p>
<p class="right">Developed by <a href="https://pl.linkedin.com/in/maciej-ciemborowicz-57202470" rel="me" target="_blank">Maciej Ciemborowicz</a> <a href="https://twitter.com/ciembor" class="twitter-follow-button" data-show-count="false" data-show-screen-name="false">follow</a> and <a href="https://github.com/ciembor/4bit#contributors" target="_blank">contributors</a> since 2012.</p>
</footer>

<div id="dialog-modal" title="Export scheme to the configuration file">
<ul>
<li>
<p>xterm / aterm / rxvt / urxvt <a href="#" id="xresources-button" class="get-scheme-link">.Xresources</a></p>
</li>
<li>
<p>gnome terminal <a href="#" id="gnome-terminal-button" class="get-scheme-link">shell</a>
</li>
<li>
<p>guake <a href="#" id="guake-button" class="get-scheme-link">shell</a>
</li>
<li>
<p>konsole / yakuake <a href="#" id="konsole-button" class="get-scheme-link">*.colorscheme</a>
</li>
<li>
<p>xfce4 terminal <a href="#" id="xfce-terminal-button" class="get-scheme-link">terminalrc</a>
</li>
<li>
<p>iTerm2 <a href="#" id="iterm2-button" class="get-scheme-link">*.itermcolors</a>
</li>
<li>
<p>mintty <a href="#" id="mintty-button" class="get-scheme-link">.minttyrc</a>
</li>
<li>
<p>putty <a href="#" id="putty-button" class="get-scheme-link">*.reg</a>
</li>
<li>
<p>terminator <a href="#" id="terminator-button" class="get-scheme-link">config</a>
</li>
</ul>
</div>

<!-- JavaScript =========================================================================== -->

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<script>window.jQuery || document.write("<script src='lib/js/jquery-1.8.0.min.js'>\x3C/script>")</script>

<script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.3.3/underscore-min.js"></script>
<script>window._ || document.write("<script src='lib/js/underscore-min.js'>\x3C/script>")</script>

<script src="http://cdnjs.cloudflare.com/ajax/libs/backbone.js/0.9.2/backbone-min.js"></script>
<script>window.Backbone || document.write("<script src='lib/js/backbone-min.js'>\x3C/script>")</script>

<script src="js/compiled.js?modified=20120923"></script>

<script>_4bit();</script>

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-48590213-1', 'ciembor.github.io');
ga('send', 'pageview');
</script>

<!-- End of JavaScript ==================================================================== -->

<body id="app" onmousedown="document.getElementById('outline-fix').innerHTML='a{outline:none}';" onkeydown="document.getElementById('outline-fix').innerHTML=''">
<script type="module" src="/src/main.js"></script>
</body>
</html>
9 changes: 0 additions & 9 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,6 @@
* author: Maciej Ciemborowicz
*/

// social media ///////////////////////////////////////////////////////////////////////////////////

(function() {

// twitter button
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");

})();

// jquery ui vertial radio ////////////////////////////////////////////////////////////////////////

(function( $ ){
Expand Down
Loading