Commit 18e5bbb7 authored by Ahoy's avatar Ahoy

Change name func

parent 4b6e2ce7
Pipeline #7242509 passed with stages
in 1 minute and 15 seconds
### Node template
# Logs
logs
*.log
npm-debug.log*
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# node-waf configuration
.lock-wscript
# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# Dependency directory
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
node_modules
### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio
*.iml
## Directory-based project format:
.idea/
# if you remove the above rule, at least ignore the following:
# User-specific stuff:
# .idea/workspace.xml
# .idea/tasks.xml
# .idea/dictionaries
# Sensitive or high-churn files:
# .idea/dataSources.ids
# .idea/dataSources.xml
# .idea/sqlDataSources.xml
# .idea/dynamic.xml
# .idea/uiDesigner.xml
# Gradle:
# .idea/gradle.xml
# .idea/libraries
# Mongo Explorer plugin:
# .idea/mongoSettings.xml
## File-based project format:
*.ipr
*.iws
## Plugin-specific files:
# IntelliJ
/out/
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
# Created by .ignore support plugin (hsz.mobi)
......@@ -115,7 +115,7 @@ function yo() {
var key = keys[i].toLowerCase().trim();
if (players.hasOwnProperty(key) && players[key]) {
var option = document.createElement('div');
option.setAttribute('onclick', 'show("' + players[key] + '", this)');
option.setAttribute('onclick', 'showPlayer("' + players[key] + '", this)');
option.dataset.iframe = players[key];
if (key == 'trailer') {
j++;
......@@ -130,7 +130,7 @@ function yo() {
option.innerText = j + '► ' + key.toUpperCase();
}
if (first) {
show(players[key], option, buttons);
showPlayer(players[key], option, buttons);
first = false;
}
buttons.appendChild(option);
......@@ -147,7 +147,7 @@ function yo() {
}
function show(iframe, element, buttons) {
function showPlayer(iframe, element, buttons) {
var yohohoLoading = document.querySelector('#yohoho-loading');
yohohoLoading.style.display = 'block';
setTimeout(function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment