Remove deprecated twitter initialization code
diff --git a/emfforms/index.html b/emfforms/index.html
index 561d865..f337efb 100644
--- a/emfforms/index.html
+++ b/emfforms/index.html
@@ -437,12 +437,7 @@
<!-- End Google Tag Manager -->
<script>
(function(w) {
- w.cookieconsent.init(
- // status changed callback
- createTwitterWidget,
- // init finished callback
- createTwitterWidget
- )
+ w.cookieconsent.init()
})(window)
</script>
</body>
diff --git a/emfforms/public/javascripts/common.js b/emfforms/public/javascripts/common.js
index 84a6c9e..5e4e53d 100644
--- a/emfforms/public/javascripts/common.js
+++ b/emfforms/public/javascripts/common.js
@@ -17,26 +17,3 @@
}
return cookies;
}
-
-function createTimeline() {
- var twitterContainer = document.getElementById("twitter-container");
- twttr.widgets.createTimeline(
- "540187881671634945",
- twitterContainer,
- {
- height: 400
- }
- );
- twitterContainer.innerText = '';
-}
-
-function createTwitterWidget() {
- if (getCookie("eclipse_cookieconsent_status", "allow")) {
- $.getScript(
- "https://platform.twitter.com/widgets.js",
- function () {
- createTimeline()
- }
- );
- }
-}
diff --git a/extensionpoints.html b/extensionpoints.html
index 65ea237..8ba1f43 100644
--- a/extensionpoints.html
+++ b/extensionpoints.html
@@ -180,12 +180,7 @@
<!-- End Google Tag Manager -->
<script>
(function(w) {
- w.cookieconsent.init(
- // status changed callback
- createTwitterWidget,
- // init finished callback
- createTwitterWidget
- )
+ w.cookieconsent.init()
})(window)
</script>
</body>
diff --git a/index.html b/index.html
index 27a9c49..c78bb38 100644
--- a/index.html
+++ b/index.html
@@ -515,12 +515,7 @@
<!-- End Google Tag Manager -->
<script>
(function(w) {
- w.cookieconsent.init(
- // status changed callback
- createTwitterWidget,
- // init finished callback
- createTwitterWidget
- )
+ w.cookieconsent.init()
})(window)
</script>
</body>
diff --git a/public/javascripts/common.js b/public/javascripts/common.js
index 4a634ec..5e4e53d 100644
--- a/public/javascripts/common.js
+++ b/public/javascripts/common.js
@@ -17,26 +17,3 @@
}
return cookies;
}
-
-function createTimeline() {
- var twitterContainer = document.getElementById("twitter-container");
- twttr.widgets.createTimeline(
- '344734102089510912',
- twitterContainer,
- {
- height: 400
- }
- );
- twitterContainer.innerText = '';
-}
-
-function createTwitterWidget() {
- if (getCookie("eclipse_cookieconsent_status", "allow")) {
- $.getScript(
- "https://platform.twitter.com/widgets.js",
- function () {
- createTimeline()
- }
- );
- }
-}