質問するログイン新規登録

質問編集履歴

4

該当のソースコード箇所を編集いたしました。

2018/09/02 09:58

投稿

webwebweb
webwebweb

スコア8

title CHANGED
File without changes
body CHANGED
@@ -30,7 +30,7 @@
30
30
 
31
31
  下記ページへ現状を再現したものをUPしてみました。
32
32
  (解決後削除いたします)
33
- [リンク内容](http://saigentest.ojaru.jp/)
33
+ [http://saigentest.ojaru.jp/](http://saigentest.ojaru.jp/)
34
34
  ※前述のhttps://teratail.com/questions/68466 のように#menuの中に閉じるボタンを設置してみたものは
35
- http://saigentest.ojaru.jp/index2.html にアップいたしました。
35
+ [http://saigentest.ojaru.jp/index2.html](http://saigentest.ojaru.jp/index2.html) にアップいたしました。
36
36
  広告が出ていますが、スライドしてきたメニューの中の<a href="#my-page">Close the menu</a>が該当の箇所です。

3

該当のソースコード箇所を編集いたしました。

2018/09/02 09:58

投稿

webwebweb
webwebweb

スコア8

title CHANGED
File without changes
body CHANGED
@@ -30,8 +30,7 @@
30
30
 
31
31
  下記ページへ現状を再現したものをUPしてみました。
32
32
  (解決後削除いたします)
33
- http://saigentest.ojaru.jp/
33
+ [リンク内容](http://saigentest.ojaru.jp/)
34
-
35
34
  ※前述のhttps://teratail.com/questions/68466 のように#menuの中に閉じるボタンを設置してみたものは
36
35
  http://saigentest.ojaru.jp/index2.html にアップいたしました。
37
36
  広告が出ていますが、スライドしてきたメニューの中の<a href="#my-page">Close the menu</a>が該当の箇所です。

2

該当のソースコード箇所を編集いたしました。

2018/09/02 09:57

投稿

webwebweb
webwebweb

スコア8

title CHANGED
File without changes
body CHANGED
@@ -28,86 +28,10 @@
28
28
 
29
29
  ### 該当のソースコード
30
30
 
31
+ 下記ページへ現状を再現したものをUPしてみました。
31
- ```ここに言語名を入力
32
+ (解決後削除いたします)
32
- <head>
33
- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
34
- <link href="/css/jquery.mmenu.all.css" rel="stylesheet">
33
+ http://saigentest.ojaru.jp/
35
- <script src="/js/jquery.mmenu.min.js" type="text/javascript"></script>
36
- <script>
37
34
 
38
- $(document).ready(function () {
39
- $("#aaaLoad").load(" URL ");
40
- });
41
-
42
- $(function () {
43
- //mmenu
44
- $('#menu').mmenu({
45
- slidingSubmenus: false
46
- });
47
- $('a[href^=#]' + 'a:not([href *= "menu"])').click(function () {
35
+ ※前述のhttps://teratail.com/questions/68466 のように#menuの中に閉じるボタンを設置してみたものは
48
- var speed = 1000;
49
- var href = $(this).attr("href");
50
- var target = $(href == "#" || href == "" ? 'html' : href);
51
- var position = target.offset().top - 55 + 'px';
52
- $("html, body").animate({
53
- scrollTop: position
54
- }, speed, "swing");
55
- return false;
56
- });
57
- $(window).on('scroll', function () {
58
- if ($(this).scrollTop() > 1) {
59
- $('body').addClass('fixed');
60
- } else {
61
- $('body').removeClass('fixed');
36
+ http://saigentest.ojaru.jp/index2.html にアップいたしました。
62
- }
63
- });
64
- });
65
- $(document).ready(function () {
66
- $("#my-menu").mmenu({
67
- // Options
68
- });
69
- var API = $("#my-menu").data("mmenu");
70
- $("#my-button").click(function () {
71
- API.close();
72
- });
73
- });
74
- </script>
75
- </head>
76
-
77
- <div id="wrap">
78
- <div id="main">
79
- <header>
80
- <a class="menu-btn" href="#menu"></a>
81
- <div id="aaaLoad"></div>
82
- </header>
83
- <main>
84
- コンテンツ
85
- </main>
86
- </div>
87
- <!--/#main-->
88
- <footer>
89
- </footer>
90
- </div>
91
- <!--/#wrap-->
92
-
93
- <div id="menu" class="menuArea">
94
- <a href="#my-page">Close the menu</a>
37
+ 広告が出ていますが、スライドしてきたメニューの中の<a href="#my-page">Close the menu</a>が該当の箇所です。
95
- <iframe id="iSlideMenu" src=" URL "></iframe>
96
- </div>
97
-
98
- css
99
- .menu-btn {
100
- vertical-align: middle;
101
- height: 50px;
102
- width: 50px;
103
- padding: 13px 11px;
104
- display: block;
105
- line-height: 40px;
106
- text-align: center;
107
- z-index: 9999;
108
- position: fixed;
109
- top: 0;
110
- left: 0;
111
- }
112
-
113
- ```

1

.menu-btn にかけているcssの記述を追加いたしました。

2018/09/02 09:56

投稿

webwebweb
webwebweb

スコア8

title CHANGED
File without changes
body CHANGED
@@ -95,4 +95,19 @@
95
95
  <iframe id="iSlideMenu" src=" URL "></iframe>
96
96
  </div>
97
97
 
98
+ css
99
+ .menu-btn {
100
+ vertical-align: middle;
101
+ height: 50px;
102
+ width: 50px;
103
+ padding: 13px 11px;
104
+ display: block;
105
+ line-height: 40px;
106
+ text-align: center;
107
+ z-index: 9999;
108
+ position: fixed;
109
+ top: 0;
110
+ left: 0;
111
+ }
112
+
98
113
  ```