-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #853 from webcompat/cssfixme-scripts
Add cssfixme scripts, fixes #850.
- Loading branch information
Showing
8 changed files
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "git_modules/css-fixme"] | ||
path = git_modules/css-fixme | ||
url = https://github.com/webcompat/css-fixme/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -206,6 +206,9 @@ We use [Grunt](http://gruntjs.com/) as a task runner to perform certain things ( | |
git clone https://github.com/<username>/webcompat.com.git #replace your github username | ||
# change to directory | ||
cd webcompat.com | ||
# check out submodules | ||
git submodule init | ||
git submodule update | ||
# initializing project | ||
[sudo] make install | ||
``` | ||
|
@@ -248,6 +251,9 @@ Windows users should simply download the most recent Python 2.7 installer and ru | |
git clone [email protected]:username/webcompat.com.git | ||
# change to directory | ||
cd webcompat.com | ||
# check out submodules | ||
git submodule init | ||
git submodule update | ||
# set up virtual environment | ||
[sudo] virtualenv env | ||
source env/bin/activate | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* global doTheBigStyleFixing */ | ||
addEventListener('load', function() { | ||
|
||
function do_fixup() { | ||
var csscode = document.getElementsByTagName('textarea')[0].value; | ||
var pre = document.getElementById('fixedcss'); | ||
var compact = document.getElementsByName('compact')[0].checked; | ||
doTheBigStyleFixing(csscode, pre, compact); | ||
} | ||
|
||
document.getElementById('btn_do_fixup').addEventListener('click', do_fixup, false); | ||
|
||
if (document.getElementsByTagName('textarea')[0].value) { | ||
do_fixup(); | ||
} | ||
|
||
document.getElementById('fixedcss').addEventListener('dblclick', function(e) { | ||
window.getSelection().removeAllRanges(); | ||
var rng = document.createRange(); | ||
rng.selectNodeContents(document.getElementById('fixedcss')); | ||
window.getSelection().addRange(rng); | ||
e.preventDefault(); | ||
}, false); | ||
|
||
}, false); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters