removed typekit for mooo.com, fixed topright_sprite
This commit is contained in:
commit
e61a32ebaa
5 changed files with 19 additions and 16 deletions
BIN
app/assets/images/topright_sprite.png
Executable file → Normal file
BIN
app/assets/images/topright_sprite.png
Executable file → Normal file
Binary file not shown.
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 7.2 KiB |
|
@ -1244,9 +1244,10 @@ Metamaps.JIT = {
|
|||
// add the proper options to the menu
|
||||
var menustring = '<ul>';
|
||||
|
||||
if (Metamaps.Active.Mapper) menustring += '<li class="rc-delete"><div class="rc-icon"></div>Delete</li>';
|
||||
if (Metamaps.Active.Map && Metamaps.Active.Mapper) menustring += '<li class="rc-remove"><div class="rc-icon"></div>Remove from map</li>';
|
||||
menustring += '<li class="rc-hide"><div class="rc-icon"></div>Hide until refresh</li>';
|
||||
if (Metamaps.Active.Map && Metamaps.Active.Mapper) menustring += '<li class="rc-remove"><div class="rc-icon"></div>Remove from map</li>';
|
||||
if (Metamaps.Active.Mapper) menustring += '<li class="rc-delete"><div class="rc-icon"></div>Delete</li>';
|
||||
|
||||
|
||||
if (!Metamaps.Active.Map) menustring += '<li class="rc-center"><div class="rc-icon"></div>Center this topic</li>';
|
||||
menustring += '<li class="rc-popout"><div class="rc-icon"></div>Open in new tab</li>';
|
||||
|
@ -1418,11 +1419,11 @@ Metamaps.JIT = {
|
|||
// add the proper options to the menu
|
||||
var menustring = '<ul>';
|
||||
|
||||
if (Metamaps.Active.Mapper) menustring += '<li class="rc-delete"><div class="rc-icon"></div>Delete</li>';
|
||||
menustring += '<li class="rc-hide"><div class="rc-icon"></div>Hide until refresh</li>';
|
||||
if (Metamaps.Active.Map && Metamaps.Active.Map.authorizeToEdit(Metamaps.Active.Mapper)) {
|
||||
menustring += '<li class="rc-remove"><div class="rc-icon"></div>Remove from map</li>';
|
||||
}
|
||||
menustring += '<li class="rc-hide"><div class="rc-icon"></div>Hide until refresh</li>';
|
||||
if (Metamaps.Active.Mapper) menustring += '<li class="rc-delete"><div class="rc-icon"></div>Delete</li>';
|
||||
|
||||
if (Metamaps.Active.Mapper) {
|
||||
var permOptions = '<ul><li class="changeP toCommons"><div class="rc-perm-icon"></div>commons</li> \
|
||||
|
|
|
@ -1183,15 +1183,16 @@ h3.realtimeBoxTitle {
|
|||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
.rightclickmenu .rc-delete .rc-icon {
|
||||
background-position: 0 -48px;
|
||||
.rightclickmenu .rc-hide .rc-icon {
|
||||
background-position: 0 0;
|
||||
}
|
||||
.rightclickmenu .rc-remove .rc-icon {
|
||||
background-position: 0 -24px;
|
||||
}
|
||||
.rightclickmenu .rc-hide .rc-icon {
|
||||
background-position: 0 0;
|
||||
.rightclickmenu .rc-delete .rc-icon {
|
||||
background-position: 0 -48px;
|
||||
}
|
||||
|
||||
.rightclickmenu .rc-center .rc-icon {
|
||||
|
||||
}
|
||||
|
@ -2737,4 +2738,4 @@ and it won't be important on password protected instances */
|
|||
script.data-gratipay-username {
|
||||
display: inline;
|
||||
float: left;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
(function() {
|
||||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
||||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + 'stats.g.doubleclick.net/dc.js';
|
||||
ga.src = ('https:' == document.location.protocol ? 'https://ssl.' : 'http://') + 'stats.g.doubleclick.net/dc.js';
|
||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
||||
})();
|
||||
|
||||
|
|
|
@ -16,12 +16,13 @@
|
|||
<%= javascript_include_tag "application" %>
|
||||
|
||||
|
||||
<!-- for metamaps.thevalueweb.com -->
|
||||
<script src="//use.typekit.net/jcy0yfj.js"></script>
|
||||
<!-- for tvw.mooo.com TODO remove -->
|
||||
<script src="//use.typekit.net/poj3rbu.js"></script>
|
||||
<!-- for localhost development -->
|
||||
<script type="text/javascript" src="//use.typekit.net/tki2nyo.js"></script>
|
||||
<% if Rails.env.production? %>
|
||||
<!-- for metamaps.thevalueweb.com -->
|
||||
<script src="//use.typekit.net/jcy0yfj.js"></script>
|
||||
<% elsif Rails.env.development? %>
|
||||
<!-- for localhost development -->
|
||||
<script type="text/javascript" src="//use.typekit.net/tki2nyo.js"></script>
|
||||
<% end %>
|
||||
<!-- to initialize all typekits -->
|
||||
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
|
||||
|
||||
|
|
Loading…
Reference in a new issue