質問編集履歴
2
Twitterのウォジェットについて追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,9 +6,29 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
+
jQueryバージョン https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js
|
10
|
+
|
11
|
+
|
12
|
+
|
9
13
|
ソースを追記します。どうか、よろしくお願いします。
|
10
14
|
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
11
|
-
|
19
|
+
組み込まれているTwitterのウォジェット[https://publish.twitter.com/](https://publish.twitter.com/)
|
20
|
+
|
21
|
+
```javascript
|
22
|
+
|
23
|
+
<a class="twitter-timeline" href="https://twitter.com/penguin520?ref_src=twsrc%5Etfw">Tweets by penguin520</a>
|
24
|
+
|
25
|
+
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
|
26
|
+
|
27
|
+
```
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
現在のコード
|
12
32
|
|
13
33
|
```html
|
14
34
|
|
@@ -124,7 +144,7 @@
|
|
124
144
|
|
125
145
|
|
126
146
|
|
127
|
-
<a class="twitter-timeline" href="https://twitter.com/penguin520?ref_src=twsrc%5Etfw">Tweets by penguin520</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
|
147
|
+
<a class="twitter-timeline" href="https://twitter.com/penguin520?ref_src=twsrc%5Etfw">Tweets by penguin520</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
|
128
148
|
|
129
149
|
|
130
150
|
|
1
ソースの追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,5 +1,195 @@
|
|
1
|
-
![
|
1
|
+
![chromeのconsole](d72110e0a43f2e63997337075ce8ee91.jpeg)
|
2
2
|
|
3
3
|
|
4
4
|
|
5
5
|
[Colorbox](http://www.jacklmoore.com/colorbox/) を サイトに、組み込もうとしています。しかし、すでにサイトに組み込んである[TwitterのPublish](https://publish.twitter.com/)が、エラーを出します。何かご存知の方がいらっしゃれば、教えていただけないでしょうか。
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
ソースを追記します。どうか、よろしくお願いします。
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
```html
|
14
|
+
|
15
|
+
<!DOCTYPE html>
|
16
|
+
|
17
|
+
<html lang="ja">
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
<head>
|
22
|
+
|
23
|
+
<title></title>
|
24
|
+
|
25
|
+
<meta charset="UTF-8">
|
26
|
+
|
27
|
+
<meta name="description" content="">
|
28
|
+
|
29
|
+
<meta name="keywords" content="">
|
30
|
+
|
31
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
32
|
+
|
33
|
+
<script src="jquery.colorbox.js"></script>
|
34
|
+
|
35
|
+
<meta http-equiv="Content-type" content="text/html; charset=UTF-8">
|
36
|
+
|
37
|
+
<meta name="viewport" content="width=device-width, user-scalable=yes, maximum-scale=1">
|
38
|
+
|
39
|
+
<link rel="stylesheet" href="colorbox.css" />
|
40
|
+
|
41
|
+
<link href="style.css" rel="stylesheet" type="text/css" media="screen,print">
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
<script>
|
46
|
+
|
47
|
+
$(document).ready(function(){
|
48
|
+
|
49
|
+
//Examples of how to assign the Colorbox event to elements
|
50
|
+
|
51
|
+
$(".group1").colorbox({rel:'group1'});
|
52
|
+
|
53
|
+
$(".group2").colorbox({rel:'group2', transition:"fade"});
|
54
|
+
|
55
|
+
$(".group3").colorbox({rel:'group3', transition:"none", width:"75%", height:"75%"});
|
56
|
+
|
57
|
+
$(".group4").colorbox({rel:'group4', slideshow:true});
|
58
|
+
|
59
|
+
$(".ajax").colorbox();
|
60
|
+
|
61
|
+
$(".youtube").colorbox({iframe:true, innerWidth:640, innerHeight:390});
|
62
|
+
|
63
|
+
$(".vimeo").colorbox({iframe:true, innerWidth:500, innerHeight:409});
|
64
|
+
|
65
|
+
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
66
|
+
|
67
|
+
$(".inline").colorbox({inline:true, width:"50%"});
|
68
|
+
|
69
|
+
$(".callbacks").colorbox({
|
70
|
+
|
71
|
+
onOpen:function(){ alert('onOpen: colorbox is about to open'); },
|
72
|
+
|
73
|
+
onLoad:function(){ alert('onLoad: colorbox has started to load the targeted content'); },
|
74
|
+
|
75
|
+
onComplete:function(){ alert('onComplete: colorbox has displayed the loaded content'); },
|
76
|
+
|
77
|
+
onCleanup:function(){ alert('onCleanup: colorbox has begun the close process'); },
|
78
|
+
|
79
|
+
onClosed:function(){ alert('onClosed: colorbox has completely closed'); }
|
80
|
+
|
81
|
+
});
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
$('.non-retina').colorbox({rel:'group5', transition:'none'})
|
86
|
+
|
87
|
+
$('.retina').colorbox({rel:'group5', transition:'none', retinaImage:true, retinaUrl:true});
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
//Example of preserving a JavaScript event for inline calls.
|
92
|
+
|
93
|
+
$("#click").click(function(){
|
94
|
+
|
95
|
+
$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
|
96
|
+
|
97
|
+
return false;
|
98
|
+
|
99
|
+
});
|
100
|
+
|
101
|
+
});
|
102
|
+
|
103
|
+
</script>
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
</head>
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
<body>
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
<main>
|
116
|
+
|
117
|
+
<div>
|
118
|
+
|
119
|
+
<p><a class='youtube' href="http://www.youtube.com/embed/9VWtyR87w-g?rel=0&wmode=transparent"><img src="move.png" alt="Youtube"></a></p>
|
120
|
+
|
121
|
+
</div>
|
122
|
+
|
123
|
+
</main>
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
<a class="twitter-timeline" href="https://twitter.com/penguin520?ref_src=twsrc%5Etfw">Tweets by penguin520</a> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>>
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
<script type="text/javascript">
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
$(function() {
|
138
|
+
|
139
|
+
var topBtn = $('#page-top');
|
140
|
+
|
141
|
+
topBtn.hide();
|
142
|
+
|
143
|
+
$(window).scroll(function () {
|
144
|
+
|
145
|
+
if ($(this).scrollTop() > 600) {
|
146
|
+
|
147
|
+
topBtn.fadeIn();
|
148
|
+
|
149
|
+
} else {
|
150
|
+
|
151
|
+
topBtn.fadeOut();
|
152
|
+
|
153
|
+
}
|
154
|
+
|
155
|
+
});
|
156
|
+
|
157
|
+
topBtn.click(function () {
|
158
|
+
|
159
|
+
$('body,html').animate({
|
160
|
+
|
161
|
+
scrollTop: 0
|
162
|
+
|
163
|
+
}, 500);
|
164
|
+
|
165
|
+
return false;
|
166
|
+
|
167
|
+
});
|
168
|
+
|
169
|
+
});
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
$(document).ready(function() {
|
174
|
+
|
175
|
+
$("#pop").click(function () {
|
176
|
+
|
177
|
+
$("#popNav").slideToggle('fast');
|
178
|
+
|
179
|
+
});
|
180
|
+
|
181
|
+
});
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
</script>
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
</body>
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
</html>
|
194
|
+
|
195
|
+
```
|