Hide mouse cursor
This commit is contained in:
parent
b9363d5ec9
commit
68fb3c4b5a
2 changed files with 4 additions and 5 deletions
|
|
@ -14,6 +14,7 @@ l__________/__________|___|______l__________j_____j
|
||||||
|
|
||||||
class @Sahli
|
class @Sahli
|
||||||
constructor: () ->
|
constructor: () ->
|
||||||
|
$('body').css('cursor', 'none');
|
||||||
# I don't think we actually are going to have one, as we don't
|
# I don't think we actually are going to have one, as we don't
|
||||||
# need instance variables (things used outside the function)
|
# need instance variables (things used outside the function)
|
||||||
|
|
||||||
|
|
@ -98,7 +99,6 @@ class @Sahli
|
||||||
@bestfit()
|
@bestfit()
|
||||||
|
|
||||||
@bestfit = =>
|
@bestfit = =>
|
||||||
viewbox = $('div#sahliviewer')
|
|
||||||
if $('div.scrolly').hasClass('image')
|
if $('div.scrolly').hasClass('image')
|
||||||
if $('div.scrolly').hasClass('bestfitMode')
|
if $('div.scrolly').hasClass('bestfitMode')
|
||||||
$('div.scrolly').removeClass 'bestfitMode'
|
$('div.scrolly').removeClass 'bestfitMode'
|
||||||
|
|
@ -115,7 +115,6 @@ class @Sahli
|
||||||
$('div.scrolly').height window.innerHeight
|
$('div.scrolly').height window.innerHeight
|
||||||
$('img.fullwidth').addClass 'bestfit'
|
$('img.fullwidth').addClass 'bestfit'
|
||||||
$('img.fullwidth').removeClass 'fullwidth'
|
$('img.fullwidth').removeClass 'fullwidth'
|
||||||
##$('div.scrolly').width("");
|
|
||||||
|
|
||||||
@loadhugeansi = (picdata, inserthere) ->
|
@loadhugeansi = (picdata, inserthere) ->
|
||||||
fname = @location + '/' + picdata.file
|
fname = @location + '/' + picdata.file
|
||||||
|
|
|
||||||
6
sahli.js
6
sahli.js
|
|
@ -16,7 +16,9 @@ l__________/__________|___|______l__________j_____j
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
this.Sahli = (function() {
|
this.Sahli = (function() {
|
||||||
function Sahli() {}
|
function Sahli() {
|
||||||
|
$('body').css('cursor', 'none');
|
||||||
|
}
|
||||||
|
|
||||||
Sahli.loadpic = function(picdata, inserthere) {
|
Sahli.loadpic = function(picdata, inserthere) {
|
||||||
switch (picdata.filetype) {
|
switch (picdata.filetype) {
|
||||||
|
|
@ -109,8 +111,6 @@ l__________/__________|___|______l__________j_____j
|
||||||
};
|
};
|
||||||
|
|
||||||
Sahli.bestfit = function() {
|
Sahli.bestfit = function() {
|
||||||
var viewbox;
|
|
||||||
viewbox = $('div#sahliviewer');
|
|
||||||
if ($('div.scrolly').hasClass('image')) {
|
if ($('div.scrolly').hasClass('image')) {
|
||||||
if ($('div.scrolly').hasClass('bestfitMode')) {
|
if ($('div.scrolly').hasClass('bestfitMode')) {
|
||||||
$('div.scrolly').removeClass('bestfitMode');
|
$('div.scrolly').removeClass('bestfitMode');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue