Fix so no videos on mobile
This commit is contained in:
parent
64b69505bf
commit
306f33652b
4 changed files with 23 additions and 8 deletions
|
@ -22,7 +22,7 @@ var Hosting = {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
}, m('div.container', [
|
}, m('div.container', [
|
||||||
m('video', {
|
!vnode.state.isMobile ? m('video', {
|
||||||
oncreate: function(subnode) {
|
oncreate: function(subnode) {
|
||||||
vnode.state.domVideo = subnode.dom
|
vnode.state.domVideo = subnode.dom
|
||||||
Helper.checkCreated(vnode)
|
Helper.checkCreated(vnode)
|
||||||
|
@ -41,7 +41,12 @@ var Hosting = {
|
||||||
type: 'video/webm',
|
type: 'video/webm',
|
||||||
}),
|
}),
|
||||||
]
|
]
|
||||||
),
|
) : m('div', {
|
||||||
|
oncreate: function(subnode) {
|
||||||
|
vnode.state.domVideo = subnode.dom
|
||||||
|
Helper.checkCreated(vnode)
|
||||||
|
},
|
||||||
|
}),
|
||||||
m('div',
|
m('div',
|
||||||
m('img', {
|
m('img', {
|
||||||
oncreate: function(subnode) {
|
oncreate: function(subnode) {
|
||||||
|
|
|
@ -22,7 +22,7 @@ var Programming = {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
}, m('div.container', [
|
}, m('div.container', [
|
||||||
m('video', {
|
!vnode.state.isMobile ? m('video', {
|
||||||
oncreate: function(subnode) {
|
oncreate: function(subnode) {
|
||||||
vnode.state.domVideo = subnode.dom
|
vnode.state.domVideo = subnode.dom
|
||||||
Helper.checkCreated(vnode)
|
Helper.checkCreated(vnode)
|
||||||
|
@ -41,7 +41,12 @@ var Programming = {
|
||||||
type: 'video/webm',
|
type: 'video/webm',
|
||||||
}),
|
}),
|
||||||
]
|
]
|
||||||
),
|
) : m('div', {
|
||||||
|
oncreate: function(subnode) {
|
||||||
|
vnode.state.domVideo = subnode.dom
|
||||||
|
Helper.checkCreated(vnode)
|
||||||
|
},
|
||||||
|
}),
|
||||||
m('div',
|
m('div',
|
||||||
m('img', {
|
m('img', {
|
||||||
oncreate: function(subnode) {
|
oncreate: function(subnode) {
|
||||||
|
|
|
@ -22,7 +22,7 @@ var Streaming = {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
}, m('div.container', [
|
}, m('div.container', [
|
||||||
m('video', {
|
!vnode.state.isMobile ? m('video', {
|
||||||
oncreate: function(subnode) {
|
oncreate: function(subnode) {
|
||||||
vnode.state.domVideo = subnode.dom
|
vnode.state.domVideo = subnode.dom
|
||||||
Helper.checkCreated(vnode)
|
Helper.checkCreated(vnode)
|
||||||
|
@ -41,7 +41,12 @@ var Streaming = {
|
||||||
type: 'video/webm',
|
type: 'video/webm',
|
||||||
}),
|
}),
|
||||||
]
|
]
|
||||||
),
|
) : m('div', {
|
||||||
|
oncreate: function(subnode) {
|
||||||
|
vnode.state.domVideo = subnode.dom
|
||||||
|
Helper.checkCreated(vnode)
|
||||||
|
},
|
||||||
|
}),
|
||||||
m('div',
|
m('div',
|
||||||
m('img', {
|
m('img', {
|
||||||
oncreate: function(subnode) {
|
oncreate: function(subnode) {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>NFP ehf. - Programming, Video, Live & Operations Contractors</title>
|
<title>NFP ehf. - Programming, Video, Live & Operations Contractors</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||||
<link href="/main.css" rel="stylesheet" />
|
<link href="/main.css?v=2" rel="stylesheet" />
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=2">
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=2">
|
||||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png?v=2">
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png?v=2">
|
||||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png?v=2">
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png?v=2">
|
||||||
|
@ -23,6 +23,6 @@
|
||||||
<body>
|
<body>
|
||||||
<div id="container"></div>
|
<div id="container"></div>
|
||||||
<footer id="footer"></footer>
|
<footer id="footer"></footer>
|
||||||
<script src="/main.js"></script>
|
<script src="/main.js?v=2"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue