mirror of
https://github.com/taroved/pol
synced 2025-05-28 03:50:08 -07:00
fixed setup tool js
This commit is contained in:
parent
e1c5b3849b
commit
f29c14699e
@ -131,4 +131,5 @@ class Counter(resource.Resource):
|
||||
|
||||
|
||||
endpoints.serverFromString(reactor, "tcp:1234").listen(server.Site(Counter()))
|
||||
print 'Server starting at http://localhost:1234'
|
||||
reactor.run()
|
||||
|
@ -50,11 +50,21 @@ var styleTool = {
|
||||
names.splice(names.indexOf(style_name), 1);
|
||||
|
||||
// apply previous style
|
||||
if (names.length)
|
||||
styles[names[id]].applyStyle(element);
|
||||
if (names.length) {
|
||||
var last_style_name = names[names.length-1];
|
||||
styles[last_style_name].applyStyle(element);
|
||||
}
|
||||
else
|
||||
styleTool.origin_styles[id].applyStyle(element);
|
||||
},
|
||||
unstyleAll: function(style_name) {
|
||||
// clear all styles with the style_name
|
||||
for (var id in styleTool.style_names) {
|
||||
var element = id2el[id];
|
||||
while (styleTool.hasStyle(element, style_name))
|
||||
styleTool.unstyle(element, style_name);
|
||||
}
|
||||
},
|
||||
style: function(element, style_name) {
|
||||
var id = $(element).attr('tag-id');
|
||||
|
||||
@ -195,6 +205,8 @@ function Item(name, button) {
|
||||
if (id != manual_id)
|
||||
item._markers.push(new Marker(id2el[id], item.name +'_calculated', function(){}));
|
||||
});
|
||||
// remove all hover styles
|
||||
styleTool.unstyleAll('hover');
|
||||
}
|
||||
return {};
|
||||
}, function(error){
|
||||
@ -340,8 +352,8 @@ function onIframeElementHover(event) {
|
||||
styleTool.style(this, 'hover');
|
||||
}
|
||||
else { // mouseleave
|
||||
if (styleTool.hasStyle(this, 'hover'))
|
||||
styleTool.unstyle(this, 'hover');
|
||||
// clear all hover styles
|
||||
styleTool.unstyleAll('hover');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,9 +1,12 @@
|
||||
#sudo apt-get install libmysqlclient-dev
|
||||
#sudo apt-get install libxml2-dev libxslt-dev python-dev
|
||||
#sudo apt-get install libffi-dev
|
||||
#sudo apt-get install libmysqlclient-dev libxml2-dev libxslt-dev python-dev libffi-dev gcc libssl-dev
|
||||
Django==1.8.6
|
||||
lxml==3.3.3
|
||||
Scrapy==1.0.3
|
||||
django-pipeline==1.5.4
|
||||
mysqlclient==1.3.7
|
||||
w3lib==1.12.0
|
||||
#sudo apt-get install nodejs npm
|
||||
#npm install -g less
|
||||
#ln -s /usr/bin/nodejs /usr/bin/node
|
||||
#sudo apt install ruby
|
||||
#sudo su -c "gem install sass"
|
||||
|
Loading…
x
Reference in New Issue
Block a user