or
<!DOCTYPE html>
<
html
>
<
head
>
<
title
>KendoUI Test Page</
title
>
<
link
href
=
"http://cdn.kendostatic.com/2013.3.1119/styles/kendo.common.min.css"
rel
=
"stylesheet"
/>
<
link
href
=
"http://cdn.kendostatic.com/2013.3.1119/styles/kendo.default.min.css"
rel
=
"stylesheet"
/>
<
link
href
=
"http://cdn.kendostatic.com/2013.3.1119/styles/kendo.dataviz.min.css"
rel
=
"stylesheet"
/>
<
link
href
=
"http://cdn.kendostatic.com/2013.3.1119/styles/kendo.mobile.all.min.css"
rel
=
"stylesheet"
/>
<
script
src
=
"http://code.jquery.com/jquery-1.9.1.min.js"
></
script
>
<
script
src
=
"http://cdn.kendostatic.com/2013.3.1119/js/kendo.all.min.js"
></
script
>
</
head
>
<
body
>
<
div
data-role
=
"view"
>
<
br
/>
<
br
/>
<
a
data-role
=
"button"
data-click
=
"openModal"
>Sign In</
a
>
</
div
>
<
div
data-role
=
"modalview"
id
=
"scrollview-home"
style
=
"width: 100%; height: 100%"
data-modal
=
"false"
>
<
div
data-role
=
"header"
>
<
div
data-role
=
"navbar"
>
<
span
>Gallery</
span
>
<
a
data-click
=
"closeModalViewLogin"
data-role
=
"button"
data-align
=
"left"
>Cancel</
a
>
</
div
>
</
div
>
<
div
id
=
"scrollview-container"
>
<
div
id
=
"scrollview"
style
=
"padding-top: 20%"
data-role
=
"scrollview"
data-template
=
"tmpl"
data-items-per-page
=
"1"
>
</
div
>
</
div
>
</
div
>
<
script
type
=
"text/x-kendo-template"
id
=
"tmpl"
>
<
div
data-role
=
"page"
> #=title#</
div
>
</
script
>
<
style
>
</
style
>
<
script
>
function openModal(e) {
var dataSource = new kendo.data.DataSource({
data: [
{title:"Item 1", desc:"Description 1"},
{title:"Item 2", desc:"Description 2"},
{title:"Item 3", desc:"Description 3"},
],
pageSize: 7
});
$("#scrollview").data("kendoMobileScrollView").setDataSource(dataSource);
$("#scrollview").data("kendoMobileScrollView").refresh();
$("#scrollview-home").data("kendoMobileModalView").open();
}
var app = new kendo.mobile.Application(document.body, {skin: 'flat'});
</
script
>
</
body
>
</
html
>
<
li
>
<
div
id
=
"meterImageGallery"
data-role
=
"scrollview"
class
=
"km-widget km-scrollview"
><
div
style
=
"height: 1px; -webkit-transform-origin: 0% 0%;"
><
div
class
=
"km-virtual-page"
style
=
"width: 326px; -webkit-transform: translate3d(-326px, 0px, 0px);"
></
div
><
div
class
=
"km-virtual-page"
style
=
"width: 326px; -webkit-transform: translate3d(0px, 0px, 0px);"
>
<
img
class
=
"meter-image"
src
=
"../ViewerService.svc/GetObjectImageById?id=485"
>
</
div
><
div
class
=
"km-virtual-page"
style
=
"width: 326px; -webkit-transform: translate3d(326px, 0px, 0px);"
>
<
img
class
=
"meter-image"
src
=
"../ViewerService.svc/GetObjectImageById?id=1067"
>
</
div
></
div
><
ol
class
=
"km-pages"
><
li
class
=
"km-current-page"
></
li
><
li
></
li
><
li
></
li
></
ol
></
div
>
</
li
>
var
friendsList = response.results;
var
friendsToInvite = [];
var
template = kendo.template( $(
'#friendsToInvite-template'
).html(), {useWithBlock:
false
} );
for
(
var
i = 0; i < friendsList.length; i++ )
{
friendsToInvite.push( { name: friendsList[i][
"name"
], fbId: friendsList[i][
"fbid"
], invited: friendsList[i][
"invited"
], eventId: event.id } );
};
var
scrollview = $(
"#scrollview"
).data(
"kendoMobileScrollView"
);
if
(
typeof
listView ===
typeof
undefined )
{
$(
"#friendsToInvite"
).kendoMobileScrollView({
template : template,
dataSource: friendsToInvite,
enablePager:
false
});
}
else
{
$(
"#scrollview"
).data(
"kendoMobileScrollView"
).setDataSource(friendsToInvite);
};
<
div
id
=
"reports-detail-images-view"
data-role
=
"view"
data-title
=
"Report Images"
data-layout
=
"back-layout"
data-show
=
"Schoofo.reportsDetailImagesView.show"
>
<
div
data-role
=
"listview"
data-source
=
"Schoofo.reportsDetailImagesView.listData"
data-template
=
"reports-detail-images-binding-template"
>
</
div
>
</
div
>
</
div
>
<
script
id
=
"reports-detail-images-binding-template"
type
=
"text/x-kendo-template"
>
<
img
style
=
"max-width: 100%; max-height: 100%;"
src
=
'https://schoofofile.s3.amazonaws.com/#: FileKey #'
></
div
>
</
script
>
<script id=
"friendsToInvite-template"
type=
"text/x-kendo-template"
>
<p class=
"friendName"
>
#= name #</p>
<div style=
"width: auto; height: 180px; background: url('https://graph.facebook.com/#= fbId #/picture?type=large') no-repeat center;"
></div>
#if( invited ) {#
<p class=
"friendsButtons"
><button class=
"button2 btn-green unInvite"
data-fbid=
"#= fbId #"
data-eventid=
"#= eventId #"
>Invited</button></p>
#} else {#
<p class=
"friendsButtons"
><button class=
"button2 btn-orange invite"
data-fbid=
"#= fbId #"
data-eventid=
"#= eventId #"
>Invite</button><!--
/*<button class="button2 btn-grey">Dont show me again</button>*/
--></p>
#}#
</script>