夏感教学设计_夏感教学设计张堂堂

2020-02-28 教学设计 下载本文

夏感教学设计由刀豆文库小编整理,希望给你工作、学习、生活带来方便,猜你可能喜欢“夏感教学设计张堂堂”。

t = event.ctrlKey &&!event.shiftKey &&!event.metaKey &&!event.altKey;

if(isRotateRight){ var index = this.panelOrder.indexOf(this.currentPanel);index =(index + 1)% this.panelOrder.length;this.panelOrder[index].toolbarItem.click();event.preventDefault();}

break;

case “U+0052”: // R key if((event.metaKey && isMac)||(event.ctrlKey &&!isMac)){ InspectorBackend.reloadPage();event.preventDefault();} break;case “F5”: if(!isMac)InspectorBackend.reloadPage();break;} }

WebInspector.documentCanCopy = function(event){ if(this.currentPanel && this.currentPanel.handleCopyEvent)event.preventDefault();}

WebInspector.documentCopy = function(event){ if(this.currentPanel && this.currentPanel.handleCopyEvent)this.currentPanel.handleCopyEvent(event);}

WebInspector.contextMenuEventFired = function(event){ if(event.handled || event.target.hasStyleCla(“popup-glapane”))event.preventDefault();}

WebInspector.animateStyle = function(animations, duration, callback){ var interval;var complete = 0;

const intervalDuration =(1000 / 30);// 30 frames per second.const animationsLength = animations.length;const propertyUnit = {opacity: “”};const defaultUnit = “px”;

function cubicInOut(t, b, c, d){ if((t/=d/2)

// Pre-proce animations.for(var i = 0;i

if(!element ||!end)continue;

if(!start){ var computedStyle = element.ownerDocument.defaultView.getComputedStyle(element);start = {};for(key in end)start[key] = parseInt(computedStyle.getPropertyValue(key));animation.start = start;} else for(key in start)element.style.setProperty(key, start[key] +(key in propertyUnit ? propertyUnit[key] : defaultUnit));}

function animateLoop(){ // Advance forward.complete += intervalDuration;var next = complete + intervalDuration;

// Make style changes.for(var i = 0;i

var style = element.style;for(key in end){ var endValue = end[key];if(next

clearInterval(WebInspector.log.interval);delete WebInspector.log.interval;

flushQueue();}

// actually log the meage function logMeage(meage){ var repeatCount = 1;if(meage == WebInspector.log.lastMeage)repeatCount = WebInspector.log.repeatCount + 1;

WebInspector.log.lastMeage = meage;WebInspector.log.repeatCount = repeatCount;

// ConsoleMeage expects a proxy object meage = new WebInspector.RemoteObject.fromPrimitiveValue(meage);

// post the meage var msg = new WebInspector.ConsoleMeage(WebInspector.ConsoleMeage.MeageSource.Other, WebInspector.ConsoleMeage.MeageType.Log, meageLevel || WebInspector.ConsoleMeage.MeageLevel.Debug,-1, null, null, repeatCount, null, [meage], null);

self.console.addMeage(msg);}

// if we can't log the meage, queue it if(!isLogAvailable()){ if(!WebInspector.log.queued)WebInspector.log.queued = [];

WebInspector.log.queued.push(meage);

if(!WebInspector.log.interval)WebInspector.log.interval = setInterval(flushQueueIfAvailable, 1000);

return;}

// flush the pending queue if any flushQueue();

// log the meage logMeage(meage);}

WebInspector.addProfileHeader = function(profile){ this.panels.profiles.addProfileHeader(profile);}

WebInspector.setRecordingProfile = function(isProfiling){

this.panels.profiles.getProfileType(WebInspector.CPUProfileType.TypeId).setRecordingProfile(isProfiling);if(this.panels.profiles.hasTemporaryProfile(WebInspector.CPUProfileType.TypeId)!== isProfiling){ if(!this._temporaryRecordingProfile){ this._temporaryRecordingProfile = { typeId: WebInspector.CPUProfileType.TypeId, title: WebInspector.UIString(“Recording鈥?), uid:-1, isTemporary: true };} if(isProfiling)

this.panels.profiles.addProfileHeader(this._temporaryRecordingProfile);else

this.panels.profiles.removeProfileHeader(this._temporaryRecordingProfile);} this.panels.profiles.updateProfileTypeButtons();}

WebInspector.drawLoadingPieChart = function(canvas, percent){ var g = canvas.getContext(”2d“);var darkColor = ”rgb(122, 168, 218)“;var lightColor = ”rgb(228, 241, 251)“;var cx = 8;var cy = 8;var r = 7;

g.beginPath();g.arc(cx, cy, r, 0, Math.PI * 2, false);g.closePath();

g.lineWidth = 1;g.strokeStyle = darkColor;g.fillStyle = lightColor;g.fill();g.stroke();

var startangle =-Math.PI / 2;var endangle = startangle +(percent * Math.PI * 2);

g.beginPath();g.moveTo(cx, cy);g.arc(cx, cy, r, startangle, endangle, false);g.closePath();

g.fillStyle = darkColor;g.fill();}

WebInspector.updateFocusedNode = function(nodeId){ this._updateFocusedNode(nodeId);this.highlightDOMNodeForTwoSeconds(nodeId);}

WebInspector.displayNameForURL = function(url){ if(!url)return ”“;

var resource = this.resourceForURL(url);if(resource)return resource.displayName;

if(!WebInspector.mainResource)return url.trimURL(”“);

var lastPathComponent = WebInspector.mainResource.lastPathComponent;var index = WebInspector.mainResource.url.indexOf(lastPathComponent);if(index!==-1 && index + lastPathComponent.length === WebInspector.mainResource.url.length){ var baseURL = WebInspector.mainResource.url.substring(0, index);if(url.indexOf(baseURL)=== 0)return url.substring(index);}

return url.trimURL(WebInspector.mainResource.domain);}

WebInspector._choosePanelToShowSourceLine = function(url, line, preferredPanel){ preferredPanel = preferredPanel || ”resources“;// FIXME: remove this once StoragePanel renamed to ResourcesPanel if(preferredPanel === ”resources“)preferredPanel = ”storage“;

var panel = this.panels[preferredPanel];if(panel && panel.canShowSourceLine(url, line))return panel;panel = this.panels.storage;return panel.canShowSourceLine(url, line)? panel : null;}

WebInspector.canShowSourceLine = function(url, line, preferredPanel){ return!this._choosePanelToShowSourceLine(url, line, preferredPanel);}

WebInspector.showSourceLine = function(url, line, preferredPanel){ this.currentPanel = this._choosePanelToShowSourceLine(url, line, preferredPanel);if(!this.currentPanel)return false;this.currentPanel.showSourceLine(url, line);return true;}

WebInspector.linkifyStringAsFragment = function(string){ var container = document.createDocumentFragment();var linkStringRegEx = /(?:[a-zA-Z][a-zA-Z0-9+.-]{2,}://|www.)[w$-_+*'=|/(){}[]%@&#~,:;.!?]{2,}[w$-_+*=|/({%@&#~]/;var lineColumnRegEx = /:(d+)(:(d+))?$/;

while(string){ var linkString = linkStringRegEx.exec(string);if(!linkString)break;

linkString = linkString[0];var title = linkString;var linkIndex = string.indexOf(linkString);var nonLink = string.substring(0, linkIndex);container.appendChild(document.createTextNode(nonLink));

var profileStringMatches = WebInspector.ProfileType.URLRegExp.exec(title);if(profileStringMatches)title = WebInspector.panels.profiles.displayTitleForProfileLink(profileStringMatches[2], profileStringMatches[1]);

var realURL =(linkString.indexOf(”www.“)=== 0 ? ”http://“ + linkString : linkString);var lineColumnMatch = lineColumnRegEx.exec(realURL);if(lineColumnMatch)realURL = realURL.substring(0, realURL.length-lineColumnMatch[0].length);

var hasResourceWithURL =!WebInspector.resourceForURL(realURL);var urlNode = WebInspector.linkifyURLAsNode(realURL, title, null, hasResourceWithURL);container.appendChild(urlNode);if(lineColumnMatch){ urlNode.setAttribute(”line_number“, lineColumnMatch[1]);urlNode.setAttribute(”preferred_panel“, ”scripts");} string = string.substring(linkIndex + linkString.length, string.length);}

if(string)container.appendChild(document.createTextNode(string));

return container;}

WebInspector.showProfileForURL = function(url){ Web

《夏感教学设计.docx》
将本文的Word文档下载,方便收藏和打印
推荐度:
夏感教学设计
点击下载文档
相关专题 夏感教学设计张堂堂 教学设计 夏感教学设计张堂堂 教学设计
[教学设计]相关推荐
    [教学设计]热门文章
      下载全文