Skip to content

Commit

Permalink
Change name func
Browse files Browse the repository at this point in the history
  • Loading branch information
4h0y committed Mar 25, 2017
1 parent 4b6e2ce commit 18e5bbb
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 3 deletions.
78 changes: 78 additions & 0 deletions .gitignore
@@ -0,0 +1,78 @@
### 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)
6 changes: 3 additions & 3 deletions yo.js
Expand Up @@ -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++;
Expand All @@ -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);
Expand All @@ -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 () {
Expand Down

0 comments on commit 18e5bbb

Please sign in to comment.