亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
亚洲人成影院在线观看| 69成人精品免费视频| 国产精品毛片大码女人| 国产99久久久久久免费看农村| xnxx国产精品| 成人在线视频一区二区| 亚洲特级片在线| 欧美裸体一区二区三区| 蜜桃av一区二区三区电影| 精品国产凹凸成av人网站| 成人激情小说乱人伦| 国产精品不卡视频| 日本精品一区二区三区四区的功能| 亚洲综合自拍偷拍| 91精品国产综合久久香蕉的特点| 国内外成人在线| 中文字幕在线一区免费| 欧美伊人久久大香线蕉综合69| 天涯成人国产亚洲精品一区av| 欧美va亚洲va在线观看蝴蝶网| 粉嫩av一区二区三区| 亚洲一区二区三区四区不卡| 精品人在线二区三区| 99久久综合狠狠综合久久| 亚洲成人综合视频| 欧美精品一区在线观看| 91麻豆精品一区二区三区| 香蕉加勒比综合久久| 欧美精彩视频一区二区三区| 在线观看日韩电影| 国产精品亚洲专一区二区三区| 国产精品美女久久久久久2018| 欧美丰满美乳xxx高潮www| 东方aⅴ免费观看久久av| 亚洲成人福利片| 国产欧美精品在线观看| 欧美午夜电影在线播放| 国产成+人+日韩+欧美+亚洲| 国产精品久久久久久久第一福利| 亚洲国产高清aⅴ视频| 欧美丝袜丝交足nylons| 国产99久久久精品| 青青草原综合久久大伊人精品优势| 国产精品久久综合| 日韩欧美一级片| 欧美视频一区在线观看| 国产成人av一区二区三区在线观看| 亚洲一线二线三线久久久| 国产欧美日本一区二区三区| 91精品欧美一区二区三区综合在| 91免费看`日韩一区二区| 国产一区二区久久| 日本 国产 欧美色综合| 一区二区在线观看免费视频播放| 国产三级欧美三级日产三级99| 欧美一区二区日韩一区二区| 在线国产电影不卡| 成人app下载| 狠狠色丁香婷综合久久| 视频一区欧美精品| 亚洲一区二区三区四区在线免费观看| 国产精品传媒入口麻豆| 久久精品视频网| 欧美精品一区二区三| 亚洲成人资源网| 一区二区三区在线观看视频| 国产精品免费久久久久| 日本一二三四高清不卡| 精品国产乱码91久久久久久网站| 制服丝袜中文字幕亚洲| 宅男噜噜噜66一区二区66| 日本道精品一区二区三区| a级精品国产片在线观看| 国产福利精品导航| 国产精品一区二区在线观看网站| 精品一区二区三区在线视频| 麻豆精品视频在线观看视频| 蜜桃av噜噜一区| 精品一区二区三区免费| 久久超级碰视频| 国产麻豆日韩欧美久久| 国产一区不卡视频| 国产成人啪免费观看软件| 国产成人在线色| www.在线成人| 一本大道av一区二区在线播放| 91豆麻精品91久久久久久| 欧美三级乱人伦电影| 91麻豆精品国产91久久久久久久久 | 欧美视频一二三区| 中文字幕成人av| 亚洲精品乱码久久久久| 亚洲曰韩产成在线| 日韩激情一区二区| 韩国理伦片一区二区三区在线播放| 久久97超碰色| 不卡一卡二卡三乱码免费网站| 91影视在线播放| 3atv在线一区二区三区| 精品盗摄一区二区三区| 国产精品网站在线观看| 亚洲最大成人网4388xx| 久久草av在线| 91片在线免费观看| 7777精品伊人久久久大香线蕉的 | 久久嫩草精品久久久久| 久久久精品一品道一区| 亚洲欧美一区二区久久| 日韩福利视频网| 国产ts人妖一区二区| 日本道精品一区二区三区| 日韩三级视频中文字幕| 国产精品人成在线观看免费 | 国产精品亚洲视频| 一本久久精品一区二区 | 欧美xxxx在线观看| 国产精品久久久久久亚洲毛片| 亚洲一区二区三区四区中文字幕| 蜜桃av一区二区在线观看| 粉嫩aⅴ一区二区三区四区| 在线精品观看国产| 精品国产乱码久久久久久牛牛| 中文字幕一区免费在线观看| 亚洲高清免费观看 | 91香蕉视频污在线| 日韩视频在线你懂得| 国产精品无圣光一区二区| 婷婷开心激情综合| 成人午夜短视频| 日韩午夜电影在线观看| 一区二区三区在线播放| 国产成人丝袜美腿| 666欧美在线视频| 亚洲久本草在线中文字幕| 久久精品国产亚洲a| 91福利视频网站| 国产精品久久一级| 国内成人自拍视频| 欧美人与性动xxxx| 亚洲欧美一区二区三区孕妇| 国产一区二区精品久久| 欧美一级xxx| 五月综合激情日本mⅴ| 色哟哟一区二区三区| 国产精品每日更新| 国产福利一区在线观看| 日韩免费看的电影| 天堂在线一区二区| 色嗨嗨av一区二区三区| 欧美激情一区二区三区全黄| 美美哒免费高清在线观看视频一区二区 | 日本中文字幕一区| 91成人在线免费观看| 亚洲少妇30p| 99久久综合色| 国产精品久久久久一区二区三区| 国产一区二区三区四区五区入口| 欧美一区二区三区色| 午夜精品在线看| 欧美亚洲国产一区二区三区| 亚洲精品视频一区| 色综合网色综合| 亚洲男同1069视频| 91美女视频网站| 亚洲精品国产视频| 一本久久精品一区二区| 一区二区在线观看免费| 日本黄色一区二区| 一区二区三区在线免费视频| 日本精品一区二区三区高清 | 91精品国产91热久久久做人人| 一区二区欧美精品| 在线精品视频小说1| 亚洲午夜久久久久久久久电影院| 日本高清视频一区二区| 洋洋av久久久久久久一区| 欧美日韩亚洲综合在线| 日本中文字幕一区二区有限公司| 在线电影院国产精品| 麻豆精品国产91久久久久久| 欧美mv和日韩mv的网站| 国产一区二区久久| 亚洲欧洲美洲综合色网| 欧美专区在线观看一区| 午夜视频一区二区| 欧美videos中文字幕| 成熟亚洲日本毛茸茸凸凹| 亚洲欧美经典视频| 欧美日韩精品一区二区三区四区| 午夜在线电影亚洲一区| 欧美tickling挠脚心丨vk| 韩国精品在线观看| 亚洲视频在线观看三级| 欧美日韩电影一区| 国精产品一区一区三区mba视频| 亚洲国产成人私人影院tom| 91丨porny丨在线| 视频一区视频二区中文字幕| 久久综合九色综合97_久久久| av男人天堂一区|