Commit f01b554d by Kim Peace

Merge branch 'feature/go_home' into 'release_sp3'

Feature/go home

See merge request !49
parents 83c48a91 908b589e
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<div class="col-4 pr-0"> <div class="col-4 pr-0">
<div class="nav-item"> <div class="nav-item">
<div class="nav_prev"> <div class="nav_prev">
<a href="#"><span>ホーム</span></a> <a href="#" class="home_btn"><span>ホーム</span></a>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -5,7 +5,11 @@ $('.category').on('click', function() { ...@@ -5,7 +5,11 @@ $('.category').on('click', function() {
}); });
$('.home_btn').on('click', function() { $('.home_btn').on('click', function() {
android.goHome(); if (CHAT_UTIL.isAndroid()) {
android.goHome();
} else if (CHAT_UTIL.isIOS()) {
webkit.messageHandlers.goHome.postMessage({});
}
}); });
$(function() { $(function() {
var h = $(window).height(); //画面の高さを取得 var h = $(window).height(); //画面の高さを取得
......
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