Neytiri is watching you.

Started by Payoang, June 02, 2010, 03:28:37 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Tìtstewan

In the Internet Explorer doesn't work either...

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Kiyevame Ikran

Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random-Random

Teylar Ta Palulukankelku

Quote from: Tìtstewan on January 16, 2014, 06:48:54 AM
In the Internet Explorer doesn't work either...

So it doesn't work on Chrome, Explorer or Firefox? Hmm  :-\... Must be something wrong with the programming of the website, then  :P.
Set oe slolu Kxitx, hifkeyä ska'ayu

The spam section: Where the random s**t happens ;D.

I can't deny it: I'm a smiley addict ;D.

;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D

Txantslusam Skxawng

Too bad that I like that song.... But I must say.... I can't remember the last time I've seen a Rick Roll video..... It's like they are extinct!
WirelessTsaheylu=Bluetooth
Inventor of the word NARF


vitalik_b

On the tablet neytiri is not working and move, but... she is watching to me. :P

Tìtstewan

#1085
Yeah, she still watching us.  Too sad that she didn't spin anymore.



Weeeelllll, I just Na'vified this....
Trololololol!!




Quote from: Txantslusam Skxawng on February 06, 2014, 05:31:14 PM
Too bad that I like that song.... But I must say.... I can't remember the last time I've seen a Rick Roll video..... It's like they are extinct!
Hmm, I must say, that I like that song too.

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Tìtstewan

#1086
Well, Thanks Wllìm who found an interesting [url=http://bugs.jquery.com/ticket/9117]website[/url] about [color=blue]$.props is undefined[/color] error, there is written, that the [color=blue]$props[/color] has been split into [color=purple]$.attrFix[/color] and [color=purple]$.propFix[/color]

I downloaded a part of the /Spam section, and edited the [b]jquery-css-transform.js[/b] file and changed the [color=blue]$props[/color] to [color=green]$propFix[/color]:
[code=JavaScript](function($){function getTransformProperty(element)
{var properties=['transform','WebkitTransform','MozTransform','msTransform','OTransform'];var p;while(p=properties.shift())
{if(typeof element.style[p]!='undefined')
{return p;}}
return'transform';}
var proxied=$.fn.css;$.fn.css=function(arg,val)
{if
(typeof $.propFix['transform']=='undefined'&&(arg=='transform'||(typeof arg=='object'&&typeof arg['transform']!='undefined')))
{$.propFix['transform']=getTransformProperty(this.get(0));}
if($.propFix['transform']!='transform')
{if(arg=='transform')
{arg=$.propFix['transform'];if(typeof val=='undefined'&&jQuery.style)
{return jQuery.style(this.get(0),arg);}}
else if
(typeof arg=='object'&&typeof arg['transform']!='undefined')
{arg[$.propFix['transform']]=arg['transform'];delete arg['transform'];}}
return proxied.apply(this,arguments);};})(jQuery);[/code]

[hr]

Fixed rotation speed of the [b]jquery-animate-css-rotate-scale.js[/b] file:

[code=JavaScript]// Fixed rotation animation for Moving Neytiri in the Spam section. Now the animation should works correct.
// Source of this code: github(dot)com/zachstronaut/jquery-animate-css-rotate-scale
(function ($) {
   function initData($el) {
       var _ARS_data = $el.data('_ARS_data');
       if (!_ARS_data) {
           _ARS_data = {
               rotateUnits: 'deg',
               scale: 1,
               rotate: 0
           };
           $el.data('_ARS_data', _ARS_data);
       }
       return _ARS_data;
   }
   function setTransform($el, data) {
       $el.css('transform', 'rotate(' + data.rotate + data.rotateUnits + ') scale(' + data.scale + ',' + data.scale + ')');
   }
   $.fn.rotate = function (val) {
       var $self = $(this), m, data = initData($self);
       if (typeof val == 'undefined') {
           return data.rotate + data.rotateUnits;
       }
       m = val.toString().match(/^(-?\d+(\.\d+)?)(.+)?$/);
       if (m) {
           if (m[3]) {
               data.rotateUnits = m[3];
           }
           data.rotate = m[1];
           
           setTransform($self, data);
       }
       return this;
   };
   $.fn.scale = function (val) {
       var $self = $(this), data = initData($self);
       
       if (typeof val == 'undefined') {
           return data.scale;
       }
       data.scale = val;
       setTransform($self, data);
       return this;
   };
   var curProxied = $.fx.prototype.cur;
   $.fx.prototype.cur = function () {
       if (this.prop == 'rotate') {
           return parseFloat($(this.elem).rotate());
       } else if (this.prop == 'scale') {
           return parseFloat($(this.elem).scale());
       }
       return curProxied.apply(this, arguments);
   };
   $.fx.step.rotate = function (fx) {
       var data = initData($(fx.elem));
       $(fx.elem).rotate(fx.now + data.rotateUnits);
   };
   $.fx.step.scale = function (fx) {
       $(fx.elem).scale(fx.now);
   };
   var animateProxied = $.fn.animate;
   $.fn.animate = function (prop) {
       if (typeof prop['rotate'] != 'undefined') {
           var $self, data, m = prop['rotate'].toString().match(/^(([+-]=)?(-?\d+(\.\d+)?))(.+)?$/);
           if (m && m[5]) {
               $self = $(this);
               data = initData($self);
               data.rotateUnits = m[5];
           }
           prop['rotate'] = m[1];
       }
       return animateProxied.apply(this, arguments);
   };
})(jQuery);[/code]

IT works. :) :D Someone just must update the code for this section.

[spoiler=video][smg id=5486 type=av][/spoiler]

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Tìtstewan

#1087
Hey, Neytiri moves now
...but don't rotate...


EDIT:
There is missing the jquery-animate-css-rotate-scale.js file...

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Tirea Aean

Quote from: Tìtstewan on May 15, 2014, 04:57:51 PM
Hey, Neytiri moves now :D
...but don't rotate... :(


EDIT:
There is missing the jquery-animate-css-rotate-scale.js file...

Confirmed.

Tìtstewan

If I look at the web console, in the "Inspector" tab of FF, there is that script listed:
Quote from: FF Web console - tap "Inspector"...
<script src="http://s.learnnavi.org/js/jquery-animate-css-rotate-scale.js" type="text/javascript"></script>
...
(and there is still a file)

But, if I look at the "Debugger" tab, it isn't listed there. As far as I understood it, this happen, when the script have a mistake or something else.

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Wllìm

Quote from: Tìtstewan on May 17, 2014, 12:31:31 PM
[...]
As far as I understood it, this happen, when the script have a mistake or something else.

Yes, I get a SyntaxError: illegal character in the console of Firebug. This seems to happen since the script file is incorrect: the spaces (ISO-8859-1 code point 20) are replaced by non-breaking spaces (ISO-8859-1 code point a0). If you open the script in Firefox, these are not visible (they are spaces after all ;D ) but when I open them in my text editor, grey "dashes" are there.

These should be replaced by spaces, I guess the script would then work :)

Tìtstewan

I see what you are seeing. Whoever have updated that rotation script, he just copied/pasted the script from five posts above 1:1 with the spaces, which is parsed by that code thing...

Here the same script but without theses spaces:

(function ($) {function initData($el) {var _ARS_data = $el.data('_ARS_data');if (!_ARS_data) {_ARS_data = {rotateUnits: 'deg',scale: 1,rotate: 0};$el.data('_ARS_data', _ARS_data);}return _ARS_data;}function setTransform($el, data) {$el.css('transform', 'rotate(' + data.rotate + data.rotateUnits + ') scale(' + data.scale + ',' + data.scale + ')');}$.fn.rotate = function (val) {var $self = $(this), m, data = initData($self);if (typeof val == 'undefined') {return data.rotate + data.rotateUnits;}m = val.toString().match(/^(-?\d+(\.\d+)?)(.+)?$/);if (m) {if (m[3]) {data.rotateUnits = m[3];}data.rotate = m[1];setTransform($self, data);}return this;};$.fn.scale = function (val) {var $self = $(this), data = initData($self);if (typeof val == 'undefined') {return data.scale;}data.scale = val;setTransform($self, data);return this;};var curProxied = $.fx.prototype.cur;$.fx.prototype.cur = function () {if (this.prop == 'rotate') {return parseFloat($(this.elem).rotate());} else if (this.prop == 'scale') {return parseFloat($(this.elem).scale());}return curProxied.apply(this, arguments);};$.fx.step.rotate = function (fx) {var data = initData($(fx.elem));$(fx.elem).rotate(fx.now + data.rotateUnits);};$.fx.step.scale = function (fx) {$(fx.elem).scale(fx.now);};var animateProxied = $.fn.animate;$.fn.animate = function (prop) {if (typeof prop['rotate'] != 'undefined') {var $self, data, m = prop['rotate'].toString().match(/^(([+-]=)?(-?\d+(\.\d+)?))(.+)?$/);if (m && m[5]) {$self = $(this);data = initData($self);data.rotateUnits = m[5];}prop['rotate'] = m[1];}return animateProxied.apply(this, arguments);};})(jQuery);

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Tìtstewan

#1092
So, this is a little posting test. Also, it is kinda funny what happens with Neytiri if I hit her head: she moves above and dissapears completely. HRH!

Sent by that samsung browser on Samsung Galaxy S4 Mini.

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Wllìm

Quote from: Tìtstewan on June 13, 2014, 03:58:57 PM
So, this is a little posting test. Also, it is kinda funny what happens with Neytiri if I hit her head: she moves above and dissapears completely. HRH! ;D
You shouldn't hit Neytiri's head. She is only supposed to do that herself, to other people ;D

Tìtstewan

#1094
Neytiri is still trolling with us?!?!

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Wind12

Oh, cool! I have just found the weather thread... then Neytiri showed up!! and she brought me here!!!  :)

Txur’Itan

Quote from: Wind12 on August 06, 2014, 03:37:22 AM
Oh, cool! I have just found the weather thread... then Neytiri showed up!! and she brought me here!!!  :)

She is always watching.
私は太った男だ。


Wind12

I know I'm safe if Neytiri's watching over me  :) :) ;)

Tìtstewan

Quote from: Tìtstewan on May 17, 2014, 02:22:26 PM
Quote from: Wllìm on May 17, 2014, 01:21:27 PM
Quote from: Tìtstewan on May 17, 2014, 12:31:31 PM
[...]
As far as I understood it, this happen, when the script have a mistake or something else.

Yes, I get a SyntaxError: illegal character in the console of Firebug. This seems to happen since the script file is incorrect: the spaces (ISO-8859-1 code point 20) are replaced by non-breaking spaces (ISO-8859-1 code point a0). If you open the script in Firefox, these are not visible (they are spaces after all ;D ) but when I open them in my text editor, grey "dashes" are there.

These should be replaced by spaces, I guess the script would then work :)
I see what you are seeing. Whoever have updated that rotation script, he just copied/pasted the script from five posts above 1:1 with the spaces, which is parsed by that code thing...

Here the same script but without theses spaces:

(function ($) {function initData($el) {var _ARS_data = $el.data('_ARS_data');if (!_ARS_data) {_ARS_data = {rotateUnits: 'deg',scale: 1,rotate: 0};$el.data('_ARS_data', _ARS_data);}return _ARS_data;}function setTransform($el, data) {$el.css('transform', 'rotate(' + data.rotate + data.rotateUnits + ') scale(' + data.scale + ',' + data.scale + ')');}$.fn.rotate = function (val) {var $self = $(this), m, data = initData($self);if (typeof val == 'undefined') {return data.rotate + data.rotateUnits;}m = val.toString().match(/^(-?\d+(\.\d+)?)(.+)?$/);if (m) {if (m[3]) {data.rotateUnits = m[3];}data.rotate = m[1];setTransform($self, data);}return this;};$.fn.scale = function (val) {var $self = $(this), data = initData($self);if (typeof val == 'undefined') {return data.scale;}data.scale = val;setTransform($self, data);return this;};var curProxied = $.fx.prototype.cur;$.fx.prototype.cur = function () {if (this.prop == 'rotate') {return parseFloat($(this.elem).rotate());} else if (this.prop == 'scale') {return parseFloat($(this.elem).scale());}return curProxied.apply(this, arguments);};$.fx.step.rotate = function (fx) {var data = initData($(fx.elem));$(fx.elem).rotate(fx.now + data.rotateUnits);};$.fx.step.scale = function (fx) {$(fx.elem).scale(fx.now);};var animateProxied = $.fn.animate;$.fn.animate = function (prop) {if (typeof prop['rotate'] != 'undefined') {var $self, data, m = prop['rotate'].toString().match(/^(([+-]=)?(-?\d+(\.\d+)?))(.+)?$/);if (m && m[5]) {$self = $(this);data = initData($self);data.rotateUnits = m[5];}prop['rotate'] = m[1];}return animateProxied.apply(this, arguments);};})(jQuery);
Perey oe...

-| Na'vi Vocab + Audio | Na'viteri as one HTML file | FAQ | Useful Links for Beginners |-
-| Kem si fu kem rä'ä si, ke lu tìfmi. |-

Tirea Aean

If I had server shell access...