Commit 3218bb7e by Kim Peace

Added js loader

parent 1a39aefa
// 名前空間
var CHAT_ADD_USER = {};
$(function () {
document.addEventListener('DOMContentLoaded', function() {
// メンバー検索
$('#chat_add_user .search_form input[type="search"]').click(function (e) {
//画面タイトル設定
......
......@@ -380,7 +380,7 @@ CHAT.leaveRoom = function () {
socket.emit("leaveRoom", function () {});
};
$(function () {
document.addEventListener('DOMContentLoaded', function() {
// ルーム名変更イベント
$(".change_room_name_btn button").click(function () {
$("form").submit();
......
// 名前空間
var CHAT_MAKE_ROOM = {};
$(function () {
document.addEventListener('DOMContentLoaded', function() {
// メンバー検索
$('#chatMakeRoom .search_form input[type="search"]').click(function (e) {
let contactListTitle = getLocalizedString("userSearch");
......
......@@ -88,7 +88,7 @@ function recordFinished() {
delete_dom_obj("screenLock");
}
$(function () {
document.addEventListener('DOMContentLoaded', function() {
// メニューオーバーレイ表示
$(".menu_btn").click(function () {
var w = $(this).width();
......
function includeJs(jsFilePath) {
var js = document.createElement("script");
js.type = "text/javascript";
js.src = jsFilePath;
document.body.appendChild(js);
}
// アコーディオン
$(".category").on("click", function () {
$(this).toggleClass("open");
......@@ -11,7 +20,8 @@ $(".home_btn").on("click", function () {
webkit.messageHandlers.goHome.postMessage({});
}
});
$(function () {
document.addEventListener('DOMContentLoaded', function() {
var h = $(window).height(); //画面の高さを取得
// ローディング表示
......
// 名前空間
var CONTACT = {};
$(function () {
document.addEventListener('DOMContentLoaded', function() {
// メンバー検索
$('#contact .search_form input[type="search"]').keyup(function (e) {
var keyword = $('#contact .search_form input[type="search"]').val();
......
......@@ -4,7 +4,7 @@ $(window).on("load", function () {
$("#loader").delay(600).fadeOut(300);
});
$(function () {
document.addEventListener('DOMContentLoaded', function() {
setTimeout("stopload()", 3000); //いつまでもローディング状態にならないように10秒で強制表示させる
});
......
......@@ -9,7 +9,7 @@ let timeInterval = null;
var backgroundFileName;
var isIos;
$(function () {
document.addEventListener('DOMContentLoaded', function() {
var coviewApiActive = coview_api.Init({
testSTRParam: "param1",
testNUMParam: 77,
......
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