亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? joeyoverlay.js

?? Joey is j2me client server application for for mobile platform. Build on top j2mepolish
?? JS
?? 第 1 頁 / 共 3 頁
字號:
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the * License. * * The Original Code is Joey Mozilla Project. * * The Initial Developer of the Original Code is * Doug Turner <dougt@meer.net>. * Portions created by the Initial Developer are Copyright (C) 2007 * the Initial Developer. All Rights Reserved. * * Contributor(s): * Marcio Galli  * * Alternatively, the contents of this file may be used under the terms of * either the GNU General Public License Version 2 or later (the "GPL"), or * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), * in which case the provisions of the GPL or the LGPL are applicable instead * of those above. If you wish to allow use of your version of this file only * under the terms of either the GPL or the LGPL, and not to allow others to * use your version of this file under the terms of the MPL, indicate your * decision by deleting the provisions above and replace them with the notice * and other provisions required by the GPL or the LGPL. If you do not delete * the provisions above, a recipient may use your version of this file under * the terms of any one of the MPL, the GPL or the LGPL. * * ***** END LICENSE BLOCK ***** */var g_joey_data;var g_joey_content_type;var g_joey_title;var g_joey_url;var g_joey_isfile;var g_joey_media_url  = null;var g_joey_media_type = null;var g_joey_areaWindow = null;var g_joey_gBrowser = null;                // presents the main browser, used by the joey_feed code.var g_joey_browserStatusHandler = null;    // to track onloction changes in the above browser ( tab browser ) element.var g_joey_statusUpdateObject = null;      // the proxy object to deal with UI var g_joey_bundleElement = null;var g_joey_mediaContentTypes = ['flv','mov','wmv','avi','mpeg','mp3','wav']; function joeyString(ref) {     return g_joey_bundleElement.getString(ref);}/*  * Event listeners associated to the joeyOverlay app  */window.addEventListener("load", joeyStartup, false);var gImageSource;function joey_listener() {}joey_listener.prototype ={    onProgressChange: function (current, total)    {        g_joey_statusUpdateObject.tellStatus("upload", current, total);    },    onStatusChange: function (action, status)    {        if (action == "login")        {            if (status == 0)            {                g_joey_statusUpdateObject.loginStatus("login","completed");            }            else if (status == -1 )            {                g_joey_statusUpdateObject.loginStatus("login","failed");                var prompts = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]                                        .getService(Components.interfaces.nsIPromptService);                var result = prompts.confirm(null, joeyString("loginFailedShort"), joeyString("loginFailedQuestion"));                if (result == true)                {                    // Clear the username and password and try again.                    clearLoginData();                    setTimeout(uploadDataFromGlobals, 500); // give enough time for us to leave the busy check                }            }            return;        }        if (action == "upload")        {            if (status == 1) {                g_joey_statusUpdateObject.tellStatus("upload",null,null,"completed");            }             else {                            g_joey_statusUpdateObject.tellStatus("upload",null,null,"failed");                 var prompts = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]                                        .getService(Components.interfaces.nsIPromptService);                prompts.alert(null, joeyString("uploadFailed"), joeyString("uploadFailed"));            }            return;        }    },    QueryInterface: function (iid)    {        if (iid.equals(Components.interfaces.mocoJoeyListener) ||            iid.equals(Components.interfaces.nsISupports))            return this;                Components.returnCode = Components.results.NS_ERROR_NO_INTERFACE;        return null;    },};function uploadDataFromGlobals(){    // marcio    try {                             var prompts = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]                                .getService(Components.interfaces.nsIPromptService);                var titleObject = {value: g_joey_title}; // default the username to user        var psvc = Components.classes["@mozilla.org/preferences-service;1"]                         .getService(Components.interfaces.nsIPrefBranch);        var askState = psvc.getBoolPref("joey.askForTitle");             if(askState == true ) {                    var check = {value: askState};  // default the checkbox to true                        var result = prompts.prompt(null, joeyString("promptTitle.windowTitle"),                                                            joeyString("promptTitle.label"),                                                           titleObject,                                                           joeyString("promptTitle.prefQuestion"),                                                            check);                        if(result) {                g_joey_title = titleObject.value;            }                                    psvc.setBoolPref("joey.askForTitle",check.value);                                       }                                   } catch (i) { joeyDumpToConsole(i) }    var joey = Components.classes["@mozilla.com/joey;1"]                         .createInstance(Components.interfaces.mocoJoey);        joey.setListener(new joey_listener());    	if (g_joey_isfile)	{		joey.uploadFile(g_joey_title,                        g_joey_url,                        g_joey_file,                        g_joey_content_type);	}	else	{	    joey.uploadData(g_joey_title,                        g_joey_url,                        g_joey_data,                        g_joey_content_type);	}}function joeyOnMouseDown(e){	if (e.which == 3) 	{		var target = e.target;		var classname = e.target.toString();		if (classname.match(/ImageElement/))        {			// Simpler, but probably less efficient syntax: target.src;			var hie = target.QueryInterface(Components.interfaces.nsIDOMHTMLImageElement);			if (hie != null)				// show menu item:				setImageSource(hie);			else				setImageSource(null);		}         else        {            setImageSource(null);        }                var selectedRange=g_joey_gBrowser.selectedBrowser.contentDocument.getSelection();        if( selectedRange && selectedRange.toString() ) {           document.getElementById("joey_selectedText").hidden=false;        } else {          document.getElementById("joey_selectedText").hidden=true;        }    }}function setImageSource(imageElement){	if (imageElement != null)		gImageSource = imageElement.src;	else		gImageSource = null;        try     {        	var menuItem = document.getElementById('joey_selectedImage');	    menuItem.setAttribute("hidden", gImageSource == null ? "true" : "false");    }     catch (e) {}}function replaceAll( str, from, to ){    // regular expression faster?        var idx = str.indexOf( from );        while ( idx > -1 ) {        str = str.replace( from, to );        idx = str.indexOf( from );    }        return str;}function joey_launchCloudSite() {	g_joey_gBrowser.loadURI(getJoeyServerURL()+"/uploads");}function joey_selectedText() {    var focusedWindow = document.commandDispatcher.focusedWindow;    var selection = focusedWindow.getSelection().toString();        selection = replaceAll(selection, "\t", "\r\n");        var file = Components.classes["@mozilla.org/file/directory_service;1"]                         .getService(Components.interfaces.nsIProperties)                         .get("TmpD", Components.interfaces.nsIFile);    file.append("joey-selected-text.tmp");    file.createUnique(Components.interfaces.nsIFile.NORMAL_FILE_TYPE, 0664);    // file is nsIFile, data is a string    var foStream = Components.classes["@mozilla.org/network/file-output-stream;1"]                             .createInstance(Components.interfaces.nsIFileOutputStream);    // use 0x02 | 0x10 to open file for appending.    foStream.init(file, 0x02 | 0x08 | 0x20, 0664, 0); // write, create, truncate    foStream.write(selection, selection.length);    foStream.close();    g_joey_file = file;    g_joey_isfile = true;    g_joey_content_type = "text/plain";    g_joey_title = focusedWindow.document.title;    g_joey_url  = focusedWindow.location.href;    uploadDataFromGlobals(false);}function joey_selected(){	if (gImageSource)		return joey_selectedImage();        var focusedWindow = document.commandDispatcher.focusedWindow;    var selection = focusedWindow.getSelection().toString();    	if (selection != null || selection != "")		return joey_selectedText();    	joey_selectedArea();}function joey_feed(){    /* We can detect which type of feed and send additional information      * as well, such as the title. On the other hand, the feed title      * may change, so that could be something chechec ( and refreshed )      * on the server      */        var feedLocation = g_joey_gBrowser.mCurrentBrowser.feeds[0].href;        g_joey_data = feedLocation;    g_joey_isfile = false;    g_joey_content_type = "rss-source/text";    g_joey_title = "Feed / We can put a title in it with one more client call. ";    g_joey_url  = feedLocation;    uploadDataFromGlobals(false);}// Check XUL statusbar itemfunction joey_launchPopup() {  joeySetCurrentFeed();  document.getElementById('joeyStatusPopup').showPopup(document.getElementById('joeyStatusButton'),-1,-1,'popup','topright', 'bottomright')}/* FIXME to be as an instance */function getMediaCallback(content_type, file){	if (length>0)    {         joeyDumpToConsole("Download successful... (" + content_type + ")");                g_joey_statusUpdateObject.tellStatus("download",null,null,"completed");                g_joey_content_type = content_type;        g_joey_file = file;        uploadDataFromGlobals(false);        return;	}    else {            /* This should become failed? */                g_joey_statusUpdateObject.tellStatus("download",null,null,"failed");        joeyDumpToConsole("Problem downloading media to joey!\n");    }}function JoeyStatusUpdateClass() {  /* We have now the XUL stack with elements in it.    * A background Layer and the top layer for    * the label.    */   this.progressElement   = document.getElementById("joeyProgressLayer");  this.progressBoxObject = document.getBoxObjectFor(document.getElementById("joeyStatusTeller"));  }/*  * UI Wrapper / Deals with the UI  * ------- * TODO: Need to work with multiple instances */JoeyStatusUpdateClass.prototype = {	/*  	 * We have to separate the login information from the      * loading status processes      */	    loginStatus: function (aMode,aAdVerb)    {	},    tellStatus:function(verb,from,to,adverb)     {        var value;         var percentage = parseInt((from/to)*parseInt(this.progressBoxObject.width));        // account for roundoff error that we have been seeing.        if (percentage > 100)            percentage = 100;                if (verb == "upload")         {            // value = "Uploading... ("+from+"/"+to+")";            value = joeyString("uploading") + "(" + percentage + "%)";        }        else        {            if (from==to)            {                // this might not be entirely true... basically, at ths point we are waiting to upload...                value = joeyString("loggingin");             }            else             {                // value = "Downloading... ("+from+"/"+to+")";                value = joeyString("downloading") + "("+percentage+"%)";              }        }           if(verb =="upload") {              this.progressElement.width=percentage;        } else {              if(verb =="download") {                percentage = this.progressBoxObject.width - percentage;                this.progressElement.width=percentage;              }         }         document.getElementById("joeyStatusTeller").value=value;                /* adverb */               if(adverb=="completed") {            this.progressElement.width=0;            if(verb=="download") {                 document.getElementById("joeyStatusTeller").value=joeyString("downloadCompleted");            }             if(verb=="upload") {                 document.getElementById("joeyStatusTeller").value=joeyString("uploadCompleted");            }             /* Dougt timer status cleanup */            setTimeout("document.getElementById('joeyStatusTeller').value=''", 600);        }        if(adverb == "failed") {            if(verb=="download") {                 document.getElementById("joeyStatusTeller").value=joeyString("downloadFailed");            }             if(verb=="upload") {                 document.getElementById("joeyStatusTeller").value=joeyString("uploadFailed");            }             /* Dougt timer status cleanup */            setTimeout("document.getElementById('joeyStatusTeller').value=''", 600);        }                      }    }/*  * This is nice for the Download + Progress functional */ function JoeyMediaFetcherStreamListener(aCallbackFunc){  this.mCallbackFunc = aCallbackFunc;}JoeyMediaFetcherStreamListener.prototype = {  mStream: null,  mContentType : null,  

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91免费在线播放| 午夜欧美在线一二页| 91精品国产91热久久久做人人| av日韩在线网站| 国产精品亚洲第一区在线暖暖韩国| 丝瓜av网站精品一区二区| 亚洲一二三区视频在线观看| 亚洲黄一区二区三区| 亚洲另类色综合网站| 一区二区三区在线免费播放| 玉足女爽爽91| 亚洲午夜久久久| 日韩福利视频导航| 久久综合综合久久综合| 久久爱另类一区二区小说| 国产综合成人久久大片91| 国产成人午夜精品5599| aaa欧美大片| 91福利在线导航| 欧美精品电影在线播放| 精品免费视频一区二区| 中文字幕av不卡| 亚洲美女淫视频| 天天综合网天天综合色| 国产做a爰片久久毛片| 成人一区二区三区| 在线观看av一区二区| 884aa四虎影成人精品一区| 久久日韩精品一区二区五区| 国产精品麻豆欧美日韩ww| 亚洲精品高清在线| 日韩国产高清在线| 成人三级伦理片| 久久先锋资源网| 欧美激情在线一区二区| 亚洲国产另类精品专区| 国产不卡免费视频| 欧美视频中文一区二区三区在线观看| 91精品久久久久久久99蜜桃| 中文欧美字幕免费| 五月天中文字幕一区二区| 国内精品第一页| 欧美日韩国产成人在线91| 国产欧美一区二区在线| 日韩电影在线一区| 成人免费毛片高清视频| 欧美一卡在线观看| 亚洲欧美色综合| 国产一区二区0| 欧美日韩国产一二三| 国产精品国产成人国产三级| 日本不卡高清视频| 在线看日韩精品电影| 久久精品男人的天堂| 日日摸夜夜添夜夜添精品视频| 懂色av中文字幕一区二区三区| 69久久夜色精品国产69蝌蚪网| 亚洲同性gay激情无套| 国产精品一区免费视频| 欧美日韩国产综合草草| 亚洲精品亚洲人成人网| 国产成人精品网址| 欧美v亚洲v综合ⅴ国产v| 亚洲国产毛片aaaaa无费看| 91美女视频网站| 中文字幕精品—区二区四季| 久色婷婷小香蕉久久| 56国语精品自产拍在线观看| 亚洲一区免费在线观看| 一本色道久久加勒比精品| 中文字幕乱码日本亚洲一区二区| 久久成人羞羞网站| 欧美大尺度电影在线| 日韩国产成人精品| 91精品国产色综合久久不卡蜜臀| 性久久久久久久久久久久| 欧美性猛交xxxxxxxx| 亚洲韩国一区二区三区| 色偷偷久久一区二区三区| 亚洲婷婷国产精品电影人久久| 不卡一区二区三区四区| 椎名由奈av一区二区三区| 97国产精品videossex| 亚洲欧美中日韩| 91国偷自产一区二区三区成为亚洲经典| 国产精品久久久一区麻豆最新章节| 国产精品一区二区在线观看不卡| 精品国产自在久精品国产| 国产一区二区网址| 国产视频一区二区在线观看| 丰满少妇在线播放bd日韩电影| 国产日韩欧美不卡| 成人av网址在线| 亚洲美女屁股眼交| 欧美三区免费完整视频在线观看| 香蕉成人伊视频在线观看| 在线观看91av| 精品影院一区二区久久久| 久久久精品2019中文字幕之3| 国产乱码字幕精品高清av| 中文字幕av不卡| 欧美性极品少妇| 麻豆一区二区在线| 国产欧美一区在线| 欧美亚洲国产一区二区三区va| 丝袜诱惑亚洲看片| 久久嫩草精品久久久精品一| 成人av在线播放网址| 亚洲不卡av一区二区三区| 精品福利一区二区三区| 成人久久18免费网站麻豆 | 午夜视频一区二区| 日韩午夜在线播放| 99久精品国产| 日本中文字幕一区二区有限公司| 精品久久国产字幕高潮| 色婷婷综合久久| 极品少妇一区二区三区精品视频 | 成人丝袜高跟foot| 亚洲五码中文字幕| 国产亚洲精品aa午夜观看| 欧美体内she精高潮| 国产一区二区三区久久久| 亚洲一区二区在线免费看| 久久久国产精华| 欧美日韩精品是欧美日韩精品| 国内成+人亚洲+欧美+综合在线| 一区二区三区日韩在线观看| 久久精品亚洲乱码伦伦中文| 欧美日韩久久一区二区| bt欧美亚洲午夜电影天堂| 美腿丝袜亚洲三区| 亚洲图片有声小说| 国产精品国产三级国产aⅴ原创| 欧美成人精品1314www| 欧美天堂亚洲电影院在线播放| 成人av电影免费在线播放| 激情综合亚洲精品| 五月天激情综合| 亚洲影院在线观看| 亚洲免费av观看| 自拍偷自拍亚洲精品播放| www日韩大片| 精品福利一二区| 日韩免费一区二区| 日韩欧美一级片| 91麻豆精品国产综合久久久久久 | 一区二区三区美女| 日韩美女啊v在线免费观看| 国产亚洲一区字幕| 久久久久97国产精华液好用吗| 日韩欧美在线观看一区二区三区| 欧美在线观看视频一区二区| 91黄视频在线观看| 色视频一区二区| 欧美在线一二三| 欧美日韩一区二区欧美激情| 欧美色精品天天在线观看视频| 欧美亚洲国产一区在线观看网站| 在线日韩一区二区| 欧美色图第一页| 在线观看91精品国产麻豆| 欧美一级国产精品| 精品国产一区二区三区久久影院| 日韩精品综合一本久道在线视频| 日韩免费观看2025年上映的电影| 日韩情涩欧美日韩视频| 久久丝袜美腿综合| 中文字幕不卡在线| 一区二区三区自拍| 天堂一区二区在线免费观看| 日日摸夜夜添夜夜添国产精品| 免费三级欧美电影| 国产精品一二三区在线| 粉嫩绯色av一区二区在线观看| 99这里只有精品| 欧美性受极品xxxx喷水| 欧美一三区三区四区免费在线看 | 不卡大黄网站免费看| 91丨九色丨黑人外教| 欧美天堂亚洲电影院在线播放| 91精品黄色片免费大全| 亚洲精品在线观看网站| 国产精品伦理一区二区| 夜夜嗨av一区二区三区四季av| 婷婷综合在线观看| 国产不卡高清在线观看视频| 色久优优欧美色久优优| 日韩欧美在线不卡| 亚洲日本韩国一区| 美国欧美日韩国产在线播放| 成人午夜看片网址| 7777精品伊人久久久大香线蕉| 久久久亚洲欧洲日产国码αv| 一区二区三区av电影| 国内精品久久久久影院色| 色综合天天综合网国产成人综合天| 在线不卡一区二区| 国产精品国产自产拍高清av | 国内国产精品久久|