Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: jokio/jok-pitching
base: 5441da12d6
...
head fork: jokio/jok-pitching
compare: abe0dd5e81
  • 2 commits
  • 9 files changed
  • 0 commit comments
  • 1 contributor
Commits on Feb 27, 2014
@playerx playerx added jury mode 6a7c8fe
Commits on Mar 01, 2014
@playerx playerx stuff abe0dd5
View
1  Jok.Pitching/Jok.Pitching/App_Start/BundleConfig.cs
@@ -16,6 +16,7 @@ public static void RegisterBundles(BundleCollection bundles)
"~/Scripts/jquery-ui-{version}.js",
"~/Scripts/jquery.cookie.js",
"~/Scripts/kinetic-v5.0.1.min.js",
+ "~/Scripts/fastclick.js",
"~/Scripts/Game.js"));
bundles.Add(new StyleBundle("~/Content/css").Include(
View
15 Jok.Pitching/Jok.Pitching/Content/Site.css
@@ -2,6 +2,7 @@
height: 100%;
background: black;
overflow: hidden;
+ background: black;
}
img {
@@ -45,6 +46,18 @@ img {
z-index: 100;
}
+#Game .hint {
+ position: absolute;
+ top: 30px;
+ left: 10px;
+ right: 10px;
+ color: rgba(255,255,255,.8);
+ font-size: 30px;
+ font-family: Arial;
+ text-align: center;
+ display: none;
+}
+
/*#Game .starting {
position: absolute;
top: 200px;
@@ -147,7 +160,7 @@ img {
}
-#StartGame {
+#Menu .start_game {
min-width: 260px;
height: 70px;
font-size: 26px;
View
1  Jok.Pitching/Jok.Pitching/Jok.Pitching.csproj
@@ -154,6 +154,7 @@
<Content Include="Scripts\bootstrap.min.js" />
<None Include="Properties\PublishProfiles\Jok.Pitching.pubxml" />
<None Include="Scripts\jquery-1.10.2.intellisense.js" />
+ <Content Include="Scripts\fastclick.js" />
<Content Include="Scripts\Game.js" />
<Content Include="Scripts\jquery-1.10.2.js" />
<Content Include="Scripts\jquery-1.10.2.min.js" />
View
38 Jok.Pitching/Jok.Pitching/Resources/Play.Designer.cs
@@ -61,7 +61,7 @@ public class Play {
}
/// <summary>
- /// Looks up a localized string similar to Play (as Speaker).
+ /// Looks up a localized string similar to Play as Speaker.
/// </summary>
public static string A001 {
get {
@@ -131,5 +131,41 @@ public class Play {
return ResourceManager.GetString("A008", resourceCulture);
}
}
+
+ /// <summary>
+ /// Looks up a localized string similar to Play as Jury.
+ /// </summary>
+ public static string A009 {
+ get {
+ return ResourceManager.GetString("A009", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Top Jury.
+ /// </summary>
+ public static string A010 {
+ get {
+ return ResourceManager.GetString("A010", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to Tap to fire.
+ /// </summary>
+ public static string A011 {
+ get {
+ return ResourceManager.GetString("A011", resourceCulture);
+ }
+ }
+
+ /// <summary>
+ /// Looks up a localized string similar to ← Rotate phone left or right →.
+ /// </summary>
+ public static string A012 {
+ get {
+ return ResourceManager.GetString("A012", resourceCulture);
+ }
+ }
}
}
View
14 Jok.Pitching/Jok.Pitching/Resources/Play.resx
@@ -118,7 +118,7 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="A001" xml:space="preserve">
- <value>Play (as Speaker)</value>
+ <value>Play as Speaker</value>
</data>
<data name="A002" xml:space="preserve">
<value>You are winner!</value>
@@ -141,4 +141,16 @@
<data name="A008" xml:space="preserve">
<value>Top Speakers</value>
</data>
+ <data name="A009" xml:space="preserve">
+ <value>Play as Jury</value>
+ </data>
+ <data name="A010" xml:space="preserve">
+ <value>Top Jury</value>
+ </data>
+ <data name="A011" xml:space="preserve">
+ <value>Tap to fire</value>
+ </data>
+ <data name="A012" xml:space="preserve">
+ <value>← Rotate phone left or right →</value>
+ </data>
</root>
View
444 Jok.Pitching/Jok.Pitching/Scripts/Game.js
@@ -3,20 +3,20 @@
var Game = {
tomatoFireHandler: undefined,
+ autoMoveInterval: undefined,
canvasLayer: undefined,
-
userImg: undefined,
+ scoreText: undefined,
+ hintText: undefined,
userHP: 5,
-
score: 0,
-
isFinished: true,
-
lastDeviceRotateTime: Date.now(),
- //bgAudio: undefined,
+ gameMode: 1,
+
init: function () {
@@ -25,12 +25,13 @@ var Game = {
});
$(document).on('keydown', this.UIKeyDown);
- //$(document).on('click', '#Container', this.UIFire);
- $(document).on('click touchstart', '#StartGame', this.UIStartGame);
- $(document).on('click touchstart', '#PlayAgain', this.UIPlayAgain);
+ $(document).on('click', '#Container', this.UIFire);
+ $(document).on('click', '.start_game', this.UIStartGame);
+ $(document).on('click', '#PlayAgain', this.UIPlayAgain);
$(document).on('click', '#Game .volume', this.UIToggleMusic);
- $(document).on('click touchstart', '#Menu .top_speakers_btn', this.UIShowLeaderboard);
-
+ $(document).on('click', '#Menu .top_speakers_btn', this.UIShowLeaderboard);
+ $(document).on('click', '#Menu .top_juries_btn', this.UIShowLeaderboard);
+
window.addEventListener("touchmove", function (event) {
if (!event.target.classList.contains('scrollable')) {
// no more scrolling
@@ -41,6 +42,8 @@ var Game = {
if (window.JM) {
function onSuccess(acceleration) {
+ if (Game.gameMode == 2) return;
+
Game.setUserAvatarByCoef(acceleration.y);
};
@@ -111,15 +114,36 @@ var Game = {
tribunaImg.moveToTop();
+ //
+ this.scoreText = new Kinetic.Text({
+ fontFamily: 'Arial',
+ fontWeight: 'Bold',
+ fontSize: 20,
+ fill: 'Red',
+ x: 50,
+ y: 15,
+ text: '',
+ });
+ this.canvasLayer.add(this.scoreText);
+
this.initAnimation();
+
+
+
+ window.addEventListener('load', function () {
+ FastClick.attach(document.body);
+ }, false);
+
},
UIShowLeaderboard: function () {
if (!window.gamecenter) return;
+ var id = $(this).attr('data-id')
+
var data = {
period: "today",
- leaderboardId: "speakers"
+ leaderboardId: id
};
window.gamecenter.showLeaderboard(function () { }, function () { }, data);
},
@@ -152,139 +176,191 @@ var Game = {
},
UIFire: function (e) {
- Game.fireTomato2(e.offsetX, e.offsetY);
- //fireTomato(e.offsetX, e.offsetY);
+
+ if (Game.gameMode != 2) return;
+
+ var x = e.offsetX;
+ var y = e.offsetY;
+
+ //if (Date.now() - Game.lastFireTime < 1000 && (x == Game.lastFireX && y == Game.lastFireY)) {
+ // return;
+ //}
+
+ Game.lastFireTime = Date.now();
+ Game.lastFireX = x;
+ Game.lastFireY = y;
+
+ Game.fireTomato(x, y);
},
UIStartGame: function () {
$('#Menu').hide();
- Game.startGame();
+ var mode = $(this).attr('data-mode');
+
+ if (mode == 1)
+ Game.playMode1();
+ else
+ Game.playMode2();
},
UIPlayAgain: function () {
$('#Menu').hide();
- Game.startGame();
+ if (Game.gameMode == 1)
+ Game.playMode1();
+ else
+ Game.playMode2();
},
UIToggleMusic: function () {
Game.toggleMusicVolume();
},
- fireTomato: function (x, y) {
- var count = $('#Game .balance span').html();
- if (!count || count <= 0) {
- this.finishGame(true);
- return;
- }
- count--;
- $('#Game .balance span').html(count);
- var tomato = $('<img class="tomato" src="' + RootUrl + '/Images/tomato.png" />');
- tomato.css('left', x);
- $('#Game').append(tomato);
+ playMode1: function () {
+
+ this.score = 0;
+ this.userHP = 5;
+ var newImg = new Image();
+ newImg.src = RootUrl + 'Images/user_avatar_hp_' + this.userHP + '.png';
+ this.userImg.setImage(newImg);
- tomato.css('top', y + 30);
+ $('#Game .balance span').html(this.score);
- var originalHeight = tomato.height();
- var originalWidth = tomato.width();
+ this.isFinished = false;
+ this.scoreText.setText(this.score);
+
+
+ this.hintText = new Kinetic.Text({
+ align: 'center',
+ y: 50,
+ x: 100,
+ width: 824,
+ fill: 'white',
+ fontSize: 30,
+ fontFamily: 'Arial',
+ text: ML.A012
+ });
- tomato.height(originalHeight * 2);
- tomato.width(originalWidth * 2);
+ this.canvasLayer.add(this.hintText);
var _this = this;
+ setTimeout(function () {
- tomato.animate({ top: y, height: originalHeight, width: originalWidth }, 1000, 'linear', function () {
- tomato.css('margin-left', '-50px');
- tomato.css('margin-top', '-50px');
- tomato.attr('src', RootUrl + '/Images/tomato_splashed.png');
- tomato.css('height', 'auto');
- tomato.css('width', 'auto');
- tomato.addClass('tomato_splashed');
+ new Kinetic.Tween({
+ node: _this.hintText,
+ opacity: 0,
+ duration: 3,
+ onFinish: function () {
+ _this.hintText.destroy();
+ }
- if (_this.isShooted(x, y) || _this.isShooted(x + 10, y) || _this.isShooted(x, y + 10) || _this.isShooted(x + 10, y + 10)) {
+ }).play();
+
+ }, 3000);
- _this.fxSplashPlay();
- var hp = $('#Game .user_avatar').attr('data-hp');
- if (hp > 1) {
- hp--;
- $('#Game .user_avatar').attr('src', RootUrl + '/Images/user_avatar_hp_' + hp + '.png');
- $('#Game .user_avatar').attr('data-hp', hp);
- } else {
- clearTimeout(_this.tomatoFireHandler);
- _this.finishGame(false);
- }
- }
- else {
- _this.fxMissPlay();
- }
- tomato.fadeOut(5000, function () {
- tomato.remove();
- });
- });
+
+ this.gameMode = 1;
+ this.tomatoFireHandler = setTimeout(this.autoFireTomato.bind(this), 500);
},
- toggleMusicVolume: function () {
- if (!this.bgAudio) return;
+ playMode2: function () {
- this.bgAudio.volume = (this.bgAudio.volume == 0) ? 40 : 0;
+ this.score = 100;
+ this.userHP = 5;
+ var newImg = new Image();
+ newImg.src = RootUrl + 'Images/user_avatar_hp_' + this.userHP + '.png';
+ this.userImg.setImage(newImg);
+ this.isFinished = false;
+ this.scoreText.setText(this.score);
+ this.scoreText.setFill('white');
+
+
+ this.hintText = new Kinetic.Text({
+ align: 'center',
+ y: 50,
+ x: 100,
+ width: 824,
+ fill: 'white',
+ fontSize: 30,
+ fontFamily: 'Arial',
+ text: ML.A011
+ });
- if (this.bgAudio.volume == 0) {
- $('#Game .volume .glyphicon-volume-up').hide();
- $('#Game .volume .glyphicon-volume-off').show();
- } else {
- $('#Game .volume .glyphicon-volume-up').show();
- $('#Game .volume .glyphicon-volume-off').hide();
- }
- },
+ this.canvasLayer.add(this.hintText);
- deviceMotionHandler: function (eventData) {
+ var _this = this;
+ setTimeout(function () {
- if (Date.now() - Game.lastDeviceRotateTime < 50) return;
+ new Kinetic.Tween({
- Game.lastDeviceRotateTime = Date.now();
+ node: _this.hintText,
+ opacity: 0,
+ duration: 3,
+ onFinish: function () {
+ _this.hintText.destroy();
+ }
- var left = Game.userImg.getPosition().x;
+ }).play();
- if (left + eventData.rotationRate.alpha < 160 || left + eventData.rotationRate.alpha > 800) return;
+ }, 3000);
- Game.userImg.setPosition({ x: left + eventData.rotationRate.alpha });
+
+ this.gameMode = 2;
+ this.autoMoveInterval = setInterval(this.animateUserMove.bind(this), 800);
},
- isShooted: function (x, y) {
+ finishGame: function (isWinner) {
- var avatarPosition = this.userImg.getPosition();
- var avatarSize = this.userImg.getSize();
+ if (this.isFinished) return;
- if ((avatarPosition.x - 50 < x && x < (avatarPosition.x - 50 + avatarSize.width)) &&
- (avatarPosition.y - 78 < y && y < (avatarPosition.y - 78 + avatarSize.height)))
- return true;
- return false;
- },
+ if (this.gameMode == 1) {
+ var highscore = this.saveHighScore(this.score, this.gameMode);
- startGame: function () {
+ $('#Menu .finish .results span').html(this.score);
+ $('#Menu .finish .highscore span').html(highscore);
+ $('#Menu .finish').show();
+ $('#Menu .start').hide();
- this.score = 0;
- this.userHP = 5;
- var newImg = new Image();
- newImg.src = RootUrl + 'Images/user_avatar_hp_' + this.userHP + '.png';
- this.userImg.setImage(newImg);
+ $('#Menu .finish button.start_game').show();
+ $('#Menu .finish button.start_game[data-mode=' + this.gameMode + ']').hide();
- $('#Game .balance span').html(this.score);
+ $('#Menu').show();
- this.tomatoFireHandler = setTimeout(this.autoFireTomato.bind(this), 500);
+ clearTimeout(this.tomatoFireHandler);
+ }
+ else {
- this.isFinished = false;
- //this.bgAudio.play();
+ var highscore = this.saveHighScore(this.score, this.gameMode);
+
+ $('#Menu .finish .results span').html(this.score);
+ $('#Menu .finish .highscore span').html(highscore);
+
+ $('#Menu .finish').show();
+ $('#Menu .start').hide();
+
+ $('#Menu .finish button.start_game').show();
+ $('#Menu .finish button.start_game[data-mode=' + this.gameMode + ']').hide();
+
+ $('#Menu').show();
+
+
+ clearInterval(this.autoMoveInterval);
+ }
+
+
+ this.isFinished = true;
},
+
+
autoFireTomato: function () {
var x = ($('#Game').width() - 200) * Math.random() + 100;
var y = ($('#Game').height() - 600) * Math.random() + 270;
@@ -293,7 +369,7 @@ var Game = {
if (tomatosCount < 1)
tomatosCount = 1;
- this.fireTomato2(x, y);
+ this.fireTomato(x, y);
var nextFireInterval = 500 / tomatosCount + Math.random() * 300;
if (this.score > 800)
@@ -302,32 +378,10 @@ var Game = {
this.tomatoFireHandler = setTimeout(this.autoFireTomato.bind(this), nextFireInterval);
},
- finishGame: function (isWinner) {
-
- if (this.isFinished) return;
-
- var highscore = this.saveHighScore(this.score);
-
- //$('#Menu .finish .results').html(isWinner ? ML.A002 : ML.A003);
- $('#Menu .finish .results span').html(this.score);
- $('#Menu .finish .highscore span').html(highscore);
- $('#Menu .finish').show();
- $('#Menu .start').hide();
- $('#Menu').show();
-
- clearTimeout(this.tomatoFireHandler);
-
- this.isFinished = true;
-
- //if (bgAudio) {
- // bgAudio.stop();
- // bgAudio.load('http://stop.me');
- //}
- },
setUserAvatarByCoef: function (coef) {
- var range = 3;
+ var range = 2.7;
var rotateCoef = coef;
if (rotateCoef < -1 * range)
@@ -357,16 +411,17 @@ var Game = {
//Game.userImg.setPosition({ x: left });
},
- saveHighScore: function (value) {
- var highscore = parseInt($.cookie('hightscore'));
+ saveHighScore: function (value, mode) {
+ var highscore = localStorage.getItem('highscore_mode' + mode);
if (highscore && highscore > value) return highscore;
- $.cookie('hightscore', value, { expire: 100000 });
+ localStorage.setItem('highscore_mode' + mode, value);
- if (window.gamecenter) {
+
+ if (window.gamecenter && (mode == 1 || mode == 2)) {
var data = {
score: value,
- leaderboardId: "speakers"
+ leaderboardId: (mode == 1 ? "speakers" : "juries")
};
window.gamecenter.submitScore(function () { }, function () { }, data);
}
@@ -375,6 +430,7 @@ var Game = {
},
+
fxSplashPlay: function () {
if (window.JM && window.JM.playAudio) {
@@ -428,12 +484,15 @@ var Game = {
},
- fireTomato2: function (x, y) {
+ fireTomato: function (x, y) {
- //if (!count || count <= 0) {
- // return;
- //}
+ if (this.gameMode == 2) {
+ if (this.score <= 0)
+ return;
+ this.score--;
+ this.scoreText.setText(this.score);
+ }
var img = new Image();
img.src = RootUrl + '/Images/tomato.png';
@@ -447,80 +506,125 @@ var Game = {
});
tomatoImg.scale({ x: 2.4, y: 2.4 });
-
this.canvasLayer.add(tomatoImg);
var _this = this;
- new Kinetic.Tween({
+ var onAnimationFinish = function () {
- node: tomatoImg,
- duration: 1.7,
- rotation: 1000,
- scaleX: .8,
- scaleY: .8,
- onFinish: function () {
- var img2 = new Image();
- img2.src = RootUrl + '/Images/tomato_splashed.png';
- tomatoImg.setImage(img2);
- tomatoImg.setSize({ width: 80, height: 76 });
- tomatoImg.setOffset({ x: 40, y: 38 });
- tomatoImg.setScale({ x: 1, y: 1 });
- tomatoImg.moveToBottom();
+ if (_this.gameMode == 2) {
+
+ if (_this.score <= 0) {
+ _this.finishGame(false);
+ }
+ }
- if (_this.isShooted(x, y) || _this.isShooted(x + 10, y) || _this.isShooted(x, y + 10) || _this.isShooted(x + 10, y + 10)) {
+ var img2 = new Image();
+ img2.src = RootUrl + '/Images/tomato_splashed.png';
+ tomatoImg.setImage(img2);
+ tomatoImg.setSize({ width: 80, height: 76 });
+ tomatoImg.setOffset({ x: 40, y: 38 });
+ tomatoImg.setScale({ x: 1, y: 1 });
+ tomatoImg.moveToBottom();
- _this.fxSplashPlay();
- if (_this.userHP > 1) {
- _this.userHP--;
+ if (_this.isShooted(x, y) || _this.isShooted(x + 10, y) || _this.isShooted(x, y + 10) || _this.isShooted(x + 10, y + 10)) {
- var newImg = new Image();
- newImg.src = RootUrl + 'Images/user_avatar_hp_' + _this.userHP + '.png';
- newImg.onload = function () {
- _this.userImg.setImage(newImg);
- };
+ _this.fxSplashPlay();
- } else {
- clearTimeout(_this.tomatoFireHandler);
- _this.finishGame(false);
- }
+ if (_this.userHP > 1) {
+ _this.userHP--;
- tomatoImg.destroy();
+ var newImg = new Image();
+ newImg.src = RootUrl + 'Images/user_avatar_hp_' + _this.userHP + '.png';
+ newImg.onload = function () {
+ _this.userImg.setImage(newImg);
+ };
+ } else {
+ clearTimeout(_this.tomatoFireHandler);
+ _this.finishGame(false);
}
- else {
+
+ tomatoImg.destroy();
+
+ }
+ else {
+ if (_this.gameMode == 1) {
+
if (!_this.isFinished) {
+
_this.score++;
- //$('#Game .balance span').html(_this.score);
+ _this.scoreText.setText(_this.score);
}
+ }
+
+ _this.fxMissPlay();
- _this.fxMissPlay();
+ new Kinetic.Tween({
- new Kinetic.Tween({
+ node: tomatoImg,
+ opacity: 0,
+ duration: 4,
+ onFinish: function () {
+ tomatoImg.destroy();
+ }
- node: tomatoImg,
- opacity: 0,
- duration: 4,
- onFinish: function () {
+ }).play();
+ }
+ }
- tomatoImg.destroy();
+ new Kinetic.Tween({
+ node: tomatoImg,
+ duration: 1.7,
+ rotation: 1000,
+ scaleX: .8,
+ scaleY: .8,
+ onFinish: onAnimationFinish
+ }).play();
+ },
- }
+ animateUserMove: function () {
- }).play();
- }
+ var left = 160 + (800 - 160) * Math.random();
- //if ($('#Game .balance span').html() <= 0) {
- // _this.finishGame(true);
- //}
- }
+ new Kinetic.Tween({
+ node: Game.userImg,
+ duration: 0.1,
+ x: left,
}).play();
},
+
+
+
+ deviceMotionHandler: function (eventData) {
+
+ if (Date.now() - Game.lastDeviceRotateTime < 50) return;
+
+ Game.lastDeviceRotateTime = Date.now();
+
+ var left = Game.userImg.getPosition().x;
+
+ if (left + eventData.rotationRate.alpha < 160 || left + eventData.rotationRate.alpha > 800) return;
+
+ Game.userImg.setPosition({ x: left + eventData.rotationRate.alpha });
+ },
+
+ isShooted: function (x, y) {
+
+ var avatarPosition = this.userImg.getPosition();
+ var avatarSize = this.userImg.getSize();
+
+ if ((avatarPosition.x - 50 < x && x < (avatarPosition.x - 50 + avatarSize.width)) &&
+ (avatarPosition.y - 78 < y && y < (avatarPosition.y - 78 + avatarSize.height)))
+ return true;
+
+ return false;
+ },
}
Game.init();
View
BIN  Jok.Pitching/Jok.Pitching/Scripts/_references.js
Binary file not shown
View
788 Jok.Pitching/Jok.Pitching/Scripts/fastclick.js
@@ -0,0 +1,788 @@
+/**
+ * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
+ *
+ * @version 0.6.11
+ * @codingstandard ftlabs-jsv2
+ * @copyright The Financial Times Limited [All Rights Reserved]
+ * @license MIT License (see LICENSE.txt)
+ */
+
+/*jslint browser:true, node:true*/
+/*global define, Event, Node*/
+
+
+/**
+ * Instantiate fast-clicking listeners on the specificed layer.
+ *
+ * @constructor
+ * @param {Element} layer The layer to listen on
+ */
+function FastClick(layer) {
+ 'use strict';
+ var oldOnClick, self = this;
+
+
+ /**
+ * Whether a click is currently being tracked.
+ *
+ * @type boolean
+ */
+ this.trackingClick = false;
+
+
+ /**
+ * Timestamp for when when click tracking started.
+ *
+ * @type number
+ */
+ this.trackingClickStart = 0;
+
+
+ /**
+ * The element being tracked for a click.
+ *
+ * @type EventTarget
+ */
+ this.targetElement = null;
+
+
+ /**
+ * X-coordinate of touch start event.
+ *
+ * @type number
+ */
+ this.touchStartX = 0;
+
+
+ /**
+ * Y-coordinate of touch start event.
+ *
+ * @type number
+ */
+ this.touchStartY = 0;
+
+
+ /**
+ * ID of the last touch, retrieved from Touch.identifier.
+ *
+ * @type number
+ */
+ this.lastTouchIdentifier = 0;
+
+
+ /**
+ * Touchmove boundary, beyond which a click will be cancelled.
+ *
+ * @type number
+ */
+ this.touchBoundary = 10;
+
+
+ /**
+ * The FastClick layer.
+ *
+ * @type Element
+ */
+ this.layer = layer;
+
+ if (!layer || !layer.nodeType) {
+ throw new TypeError('Layer must be a document node');
+ }
+
+ /** @type function() */
+ this.onClick = function() { return FastClick.prototype.onClick.apply(self, arguments); };
+
+ /** @type function() */
+ this.onMouse = function() { return FastClick.prototype.onMouse.apply(self, arguments); };
+
+ /** @type function() */
+ this.onTouchStart = function() { return FastClick.prototype.onTouchStart.apply(self, arguments); };
+
+ /** @type function() */
+ this.onTouchMove = function() { return FastClick.prototype.onTouchMove.apply(self, arguments); };
+
+ /** @type function() */
+ this.onTouchEnd = function() { return FastClick.prototype.onTouchEnd.apply(self, arguments); };
+
+ /** @type function() */
+ this.onTouchCancel = function() { return FastClick.prototype.onTouchCancel.apply(self, arguments); };
+
+ if (FastClick.notNeeded(layer)) {
+ return;
+ }
+
+ // Set up event handlers as required
+ if (this.deviceIsAndroid) {
+ layer.addEventListener('mouseover', this.onMouse, true);
+ layer.addEventListener('mousedown', this.onMouse, true);
+ layer.addEventListener('mouseup', this.onMouse, true);
+ }
+
+ layer.addEventListener('click', this.onClick, true);
+ layer.addEventListener('touchstart', this.onTouchStart, false);
+ layer.addEventListener('touchmove', this.onTouchMove, false);
+ layer.addEventListener('touchend', this.onTouchEnd, false);
+ layer.addEventListener('touchcancel', this.onTouchCancel, false);
+
+ // Hack is required for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)
+ // which is how FastClick normally stops click events bubbling to callbacks registered on the FastClick
+ // layer when they are cancelled.
+ if (!Event.prototype.stopImmediatePropagation) {
+ layer.removeEventListener = function(type, callback, capture) {
+ var rmv = Node.prototype.removeEventListener;
+ if (type === 'click') {
+ rmv.call(layer, type, callback.hijacked || callback, capture);
+ } else {
+ rmv.call(layer, type, callback, capture);
+ }
+ };
+
+ layer.addEventListener = function(type, callback, capture) {
+ var adv = Node.prototype.addEventListener;
+ if (type === 'click') {
+ adv.call(layer, type, callback.hijacked || (callback.hijacked = function(event) {
+ if (!event.propagationStopped) {
+ callback(event);
+ }
+ }), capture);
+ } else {
+ adv.call(layer, type, callback, capture);
+ }
+ };
+ }
+
+ // If a handler is already declared in the element's onclick attribute, it will be fired before
+ // FastClick's onClick handler. Fix this by pulling out the user-defined handler function and
+ // adding it as listener.
+ if (typeof layer.onclick === 'function') {
+
+ // Android browser on at least 3.2 requires a new reference to the function in layer.onclick
+ // - the old one won't work if passed to addEventListener directly.
+ oldOnClick = layer.onclick;
+ layer.addEventListener('click', function(event) {
+ oldOnClick(event);
+ }, false);
+ layer.onclick = null;
+ }
+}
+
+
+/**
+ * Android requires exceptions.
+ *
+ * @type boolean
+ */
+FastClick.prototype.deviceIsAndroid = navigator.userAgent.indexOf('Android') > 0;
+
+
+/**
+ * iOS requires exceptions.
+ *
+ * @type boolean
+ */
+FastClick.prototype.deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent);
+
+
+/**
+ * iOS 4 requires an exception for select elements.
+ *
+ * @type boolean
+ */
+FastClick.prototype.deviceIsIOS4 = FastClick.prototype.deviceIsIOS && (/OS 4_\d(_\d)?/).test(navigator.userAgent);
+
+
+/**
+ * iOS 6.0(+?) requires the target element to be manually derived
+ *
+ * @type boolean
+ */
+FastClick.prototype.deviceIsIOSWithBadTarget = FastClick.prototype.deviceIsIOS && (/OS ([6-9]|\d{2})_\d/).test(navigator.userAgent);
+
+
+/**
+ * Determine whether a given element requires a native click.
+ *
+ * @param {EventTarget|Element} target Target DOM element
+ * @returns {boolean} Returns true if the element needs a native click
+ */
+FastClick.prototype.needsClick = function(target) {
+ 'use strict';
+ switch (target.nodeName.toLowerCase()) {
+
+ // Don't send a synthetic click to disabled inputs (issue #62)
+ case 'button':
+ case 'select':
+ case 'textarea':
+ if (target.disabled) {
+ return true;
+ }
+
+ break;
+ case 'input':
+
+ // File inputs need real clicks on iOS 6 due to a browser bug (issue #68)
+ if ((this.deviceIsIOS && target.type === 'file') || target.disabled) {
+ return true;
+ }
+
+ break;
+ case 'label':
+ case 'video':
+ return true;
+ }
+
+ return (/\bneedsclick\b/).test(target.className);
+};
+
+
+/**
+ * Determine whether a given element requires a call to focus to simulate click into element.
+ *
+ * @param {EventTarget|Element} target Target DOM element
+ * @returns {boolean} Returns true if the element requires a call to focus to simulate native click.
+ */
+FastClick.prototype.needsFocus = function(target) {
+ 'use strict';
+ switch (target.nodeName.toLowerCase()) {
+ case 'textarea':
+ return true;
+ case 'select':
+ return !this.deviceIsAndroid;
+ case 'input':
+ switch (target.type) {
+ case 'button':
+ case 'checkbox':
+ case 'file':
+ case 'image':
+ case 'radio':
+ case 'submit':
+ return false;
+ }
+
+ // No point in attempting to focus disabled inputs
+ return !target.disabled && !target.readOnly;
+ default:
+ return (/\bneedsfocus\b/).test(target.className);
+ }
+};
+
+
+/**
+ * Send a click event to the specified element.
+ *
+ * @param {EventTarget|Element} targetElement
+ * @param {Event} event
+ */
+FastClick.prototype.sendClick = function(targetElement, event) {
+ 'use strict';
+ var clickEvent, touch;
+
+ // On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24)
+ if (document.activeElement && document.activeElement !== targetElement) {
+ document.activeElement.blur();
+ }
+
+ touch = event.changedTouches[0];
+
+ // Synthesise a click event, with an extra attribute so it can be tracked
+ clickEvent = document.createEvent('MouseEvents');
+ clickEvent.initMouseEvent(this.determineEventType(targetElement), true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null);
+ clickEvent.forwardedTouchEvent = true;
+ targetElement.dispatchEvent(clickEvent);
+};
+
+FastClick.prototype.determineEventType = function(targetElement) {
+ 'use strict';
+
+ //Issue #159: Android Chrome Select Box does not open with a synthetic click event
+ if (this.deviceIsAndroid && targetElement.tagName.toLowerCase() === 'select') {
+ return 'mousedown';
+ }
+
+ return 'click';
+};
+
+
+/**
+ * @param {EventTarget|Element} targetElement
+ */
+FastClick.prototype.focus = function(targetElement) {
+ 'use strict';
+ var length;
+
+ // Issue #160: on iOS 7, some input elements (e.g. date datetime) throw a vague TypeError on setSelectionRange. These elements don't have an integer value for the selectionStart and selectionEnd properties, but unfortunately that can't be used for detection because accessing the properties also throws a TypeError. Just check the type instead. Filed as Apple bug #15122724.
+ if (this.deviceIsIOS && targetElement.setSelectionRange && targetElement.type.indexOf('date') !== 0 && targetElement.type !== 'time') {
+ length = targetElement.value.length;
+ targetElement.setSelectionRange(length, length);
+ } else {
+ targetElement.focus();
+ }
+};
+
+
+/**
+ * Check whether the given target element is a child of a scrollable layer and if so, set a flag on it.
+ *
+ * @param {EventTarget|Element} targetElement
+ */
+FastClick.prototype.updateScrollParent = function(targetElement) {
+ 'use strict';
+ var scrollParent, parentElement;
+
+ scrollParent = targetElement.fastClickScrollParent;
+
+ // Attempt to discover whether the target element is contained within a scrollable layer. Re-check if the
+ // target element was moved to another parent.
+ if (!scrollParent || !scrollParent.contains(targetElement)) {
+ parentElement = targetElement;
+ do {
+ if (parentElement.scrollHeight > parentElement.offsetHeight) {
+ scrollParent = parentElement;
+ targetElement.fastClickScrollParent = parentElement;
+ break;
+ }
+
+ parentElement = parentElement.parentElement;
+ } while (parentElement);
+ }
+
+ // Always update the scroll top tracker if possible.
+ if (scrollParent) {
+ scrollParent.fastClickLastScrollTop = scrollParent.scrollTop;
+ }
+};
+
+
+/**
+ * @param {EventTarget} targetElement
+ * @returns {Element|EventTarget}
+ */
+FastClick.prototype.getTargetElementFromEventTarget = function(eventTarget) {
+ 'use strict';
+
+ // On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node.
+ if (eventTarget.nodeType === Node.TEXT_NODE) {
+ return eventTarget.parentNode;
+ }
+
+ return eventTarget;
+};
+
+
+/**
+ * On touch start, record the position and scroll offset.
+ *
+ * @param {Event} event
+ * @returns {boolean}
+ */
+FastClick.prototype.onTouchStart = function(event) {
+ 'use strict';
+ var targetElement, touch, selection;
+
+ // Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111).
+ if (event.targetTouches.length > 1) {
+ return true;
+ }
+
+ targetElement = this.getTargetElementFromEventTarget(event.target);
+ touch = event.targetTouches[0];
+
+ if (this.deviceIsIOS) {
+
+ // Only trusted events will deselect text on iOS (issue #49)
+ selection = window.getSelection();
+ if (selection.rangeCount && !selection.isCollapsed) {
+ return true;
+ }
+
+ if (!this.deviceIsIOS4) {
+
+ // Weird things happen on iOS when an alert or confirm dialog is opened from a click event callback (issue #23):
+ // when the user next taps anywhere else on the page, new touchstart and touchend events are dispatched
+ // with the same identifier as the touch event that previously triggered the click that triggered the alert.
+ // Sadly, there is an issue on iOS 4 that causes some normal touch events to have the same identifier as an
+ // immediately preceeding touch event (issue #52), so this fix is unavailable on that platform.
+ if (touch.identifier === this.lastTouchIdentifier) {
+ event.preventDefault();
+ return false;
+ }
+
+ this.lastTouchIdentifier = touch.identifier;
+
+ // If the target element is a child of a scrollable layer (using -webkit-overflow-scrolling: touch) and:
+ // 1) the user does a fling scroll on the scrollable layer
+ // 2) the user stops the fling scroll with another tap
+ // then the event.target of the last 'touchend' event will be the element that was under the user's finger
+ // when the fling scroll was started, causing FastClick to send a click event to that layer - unless a check
+ // is made to ensure that a parent layer was not scrolled before sending a synthetic click (issue #42).
+ this.updateScrollParent(targetElement);
+ }
+ }
+
+ this.trackingClick = true;
+ this.trackingClickStart = event.timeStamp;
+ this.targetElement = targetElement;
+
+ this.touchStartX = touch.pageX;
+ this.touchStartY = touch.pageY;
+
+ // Prevent phantom clicks on fast double-tap (issue #36)
+ if ((event.timeStamp - this.lastClickTime) < 200) {
+ event.preventDefault();
+ }
+
+ return true;
+};
+
+
+/**
+ * Based on a touchmove event object, check whether the touch has moved past a boundary since it started.
+ *
+ * @param {Event} event
+ * @returns {boolean}
+ */
+FastClick.prototype.touchHasMoved = function(event) {
+ 'use strict';
+ var touch = event.changedTouches[0], boundary = this.touchBoundary;
+
+ if (Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary) {
+ return true;
+ }
+
+ return false;
+};
+
+
+/**
+ * Update the last position.
+ *
+ * @param {Event} event
+ * @returns {boolean}
+ */
+FastClick.prototype.onTouchMove = function(event) {
+ 'use strict';
+ if (!this.trackingClick) {
+ return true;
+ }
+
+ // If the touch has moved, cancel the click tracking
+ if (this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)) {
+ this.trackingClick = false;
+ this.targetElement = null;
+ }
+
+ return true;
+};
+
+
+/**
+ * Attempt to find the labelled control for the given label element.
+ *
+ * @param {EventTarget|HTMLLabelElement} labelElement
+ * @returns {Element|null}
+ */
+FastClick.prototype.findControl = function(labelElement) {
+ 'use strict';
+
+ // Fast path for newer browsers supporting the HTML5 control attribute
+ if (labelElement.control !== undefined) {
+ return labelElement.control;
+ }
+
+ // All browsers under test that support touch events also support the HTML5 htmlFor attribute
+ if (labelElement.htmlFor) {
+ return document.getElementById(labelElement.htmlFor);
+ }
+
+ // If no for attribute exists, attempt to retrieve the first labellable descendant element
+ // the list of which is defined here: http://www.w3.org/TR/html5/forms.html#category-label
+ return labelElement.querySelector('button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea');
+};
+
+
+/**
+ * On touch end, determine whether to send a click event at once.
+ *
+ * @param {Event} event
+ * @returns {boolean}
+ */
+FastClick.prototype.onTouchEnd = function(event) {
+ 'use strict';
+ var forElement, trackingClickStart, targetTagName, scrollParent, touch, targetElement = this.targetElement;
+
+ if (!this.trackingClick) {
+ return true;
+ }
+
+ // Prevent phantom clicks on fast double-tap (issue #36)
+ if ((event.timeStamp - this.lastClickTime) < 200) {
+ this.cancelNextClick = true;
+ return true;
+ }
+
+ // Reset to prevent wrong click cancel on input (issue #156).
+ this.cancelNextClick = false;
+
+ this.lastClickTime = event.timeStamp;
+
+ trackingClickStart = this.trackingClickStart;
+ this.trackingClick = false;
+ this.trackingClickStart = 0;
+
+ // On some iOS devices, the targetElement supplied with the event is invalid if the layer
+ // is performing a transition or scroll, and has to be re-detected manually. Note that
+ // for this to function correctly, it must be called *after* the event target is checked!
+ // See issue #57; also filed as rdar://13048589 .
+ if (this.deviceIsIOSWithBadTarget) {
+ touch = event.changedTouches[0];
+
+ // In certain cases arguments of elementFromPoint can be negative, so prevent setting targetElement to null
+ targetElement = document.elementFromPoint(touch.pageX - window.pageXOffset, touch.pageY - window.pageYOffset) || targetElement;
+ targetElement.fastClickScrollParent = this.targetElement.fastClickScrollParent;
+ }
+
+ targetTagName = targetElement.tagName.toLowerCase();
+ if (targetTagName === 'label') {
+ forElement = this.findControl(targetElement);
+ if (forElement) {
+ this.focus(targetElement);
+ if (this.deviceIsAndroid) {
+ return false;
+ }
+
+ targetElement = forElement;
+ }
+ } else if (this.needsFocus(targetElement)) {
+
+ // Case 1: If the touch started a while ago (best guess is 100ms based on tests for issue #36) then focus will be triggered anyway. Return early and unset the target element reference so that the subsequent click will be allowed through.
+ // Case 2: Without this exception for input elements tapped when the document is contained in an iframe, then any inputted text won't be visible even though the value attribute is updated as the user types (issue #37).
+ if ((event.timeStamp - trackingClickStart) > 100 || (this.deviceIsIOS && window.top !== window && targetTagName === 'input')) {
+ this.targetElement = null;
+ return false;
+ }
+
+ this.focus(targetElement);
+
+ // Select elements need the event to go through on iOS 4, otherwise the selector menu won't open.
+ if (!this.deviceIsIOS4 || targetTagName !== 'select') {
+ this.targetElement = null;
+ event.preventDefault();
+ }
+
+ return false;
+ }
+
+ if (this.deviceIsIOS && !this.deviceIsIOS4) {
+
+ // Don't send a synthetic click event if the target element is contained within a parent layer that was scrolled
+ // and this tap is being used to stop the scrolling (usually initiated by a fling - issue #42).
+ scrollParent = targetElement.fastClickScrollParent;
+ if (scrollParent && scrollParent.fastClickLastScrollTop !== scrollParent.scrollTop) {
+ return true;
+ }
+ }
+
+ // Prevent the actual click from going though - unless the target node is marked as requiring
+ // real clicks or if it is in the whitelist in which case only non-programmatic clicks are permitted.
+ if (!this.needsClick(targetElement)) {
+ event.preventDefault();
+ this.sendClick(targetElement, event);
+ }
+
+ return false;
+};
+
+
+/**
+ * On touch cancel, stop tracking the click.
+ *
+ * @returns {void}
+ */
+FastClick.prototype.onTouchCancel = function() {
+ 'use strict';
+ this.trackingClick = false;
+ this.targetElement = null;
+};
+
+
+/**
+ * Determine mouse events which should be permitted.
+ *
+ * @param {Event} event
+ * @returns {boolean}
+ */
+FastClick.prototype.onMouse = function(event) {
+ 'use strict';
+
+ // If a target element was never set (because a touch event was never fired) allow the event
+ if (!this.targetElement) {
+ return true;
+ }
+
+ if (event.forwardedTouchEvent) {
+ return true;
+ }
+
+ // Programmatically generated events targeting a specific element should be permitted
+ if (!event.cancelable) {
+ return true;
+ }
+
+ // Derive and check the target element to see whether the mouse event needs to be permitted;
+ // unless explicitly enabled, prevent non-touch click events from triggering actions,
+ // to prevent ghost/doubleclicks.
+ if (!this.needsClick(this.targetElement) || this.cancelNextClick) {
+
+ // Prevent any user-added listeners declared on FastClick element from being fired.
+ if (event.stopImmediatePropagation) {
+ event.stopImmediatePropagation();
+ } else {
+
+ // Part of the hack for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2)
+ event.propagationStopped = true;
+ }
+
+ // Cancel the event
+ event.stopPropagation();
+ event.preventDefault();
+
+ return false;
+ }
+
+ // If the mouse event is permitted, return true for the action to go through.
+ return true;
+};
+
+
+/**
+ * On actual clicks, determine whether this is a touch-generated click, a click action occurring
+ * naturally after a delay after a touch (which needs to be cancelled to avoid duplication), or
+ * an actual click which should be permitted.
+ *
+ * @param {Event} event
+ * @returns {boolean}
+ */
+FastClick.prototype.onClick = function(event) {
+ 'use strict';
+ var permitted;
+
+ // It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case, set the click-tracking flag back to false and return early. This will cause onTouchEnd to return early.
+ if (this.trackingClick) {
+ this.targetElement = null;
+ this.trackingClick = false;
+ return true;
+ }
+
+ // Very odd behaviour on iOS (issue #18): if a submit element is present inside a form and the user hits enter in the iOS simulator or clicks the Go button on the pop-up OS keyboard the a kind of 'fake' click event will be triggered with the submit-type input element as the target.
+ if (event.target.type === 'submit' && event.detail === 0) {
+ return true;
+ }
+
+ permitted = this.onMouse(event);
+
+ // Only unset targetElement if the click is not permitted. This will ensure that the check for !targetElement in onMouse fails and the browser's click doesn't go through.
+ if (!permitted) {
+ this.targetElement = null;
+ }
+
+ // If clicks are permitted, return true for the action to go through.
+ return permitted;
+};
+
+
+/**
+ * Remove all FastClick's event listeners.
+ *
+ * @returns {void}
+ */
+FastClick.prototype.destroy = function() {
+ 'use strict';
+ var layer = this.layer;
+
+ if (this.deviceIsAndroid) {
+ layer.removeEventListener('mouseover', this.onMouse, true);
+ layer.removeEventListener('mousedown', this.onMouse, true);
+ layer.removeEventListener('mouseup', this.onMouse, true);
+ }
+
+ layer.removeEventListener('click', this.onClick, true);
+ layer.removeEventListener('touchstart', this.onTouchStart, false);
+ layer.removeEventListener('touchmove', this.onTouchMove, false);
+ layer.removeEventListener('touchend', this.onTouchEnd, false);
+ layer.removeEventListener('touchcancel', this.onTouchCancel, false);
+};
+
+
+/**
+ * Check whether FastClick is needed.
+ *
+ * @param {Element} layer The layer to listen on
+ */
+FastClick.notNeeded = function(layer) {
+ 'use strict';
+ var metaViewport;
+ var chromeVersion;
+
+ // Devices that don't support touch don't need FastClick
+ if (typeof window.ontouchstart === 'undefined') {
+ return true;
+ }
+
+ // Chrome version - zero for other browsers
+ chromeVersion = +(/Chrome\/([0-9]+)/.exec(navigator.userAgent) || [,0])[1];
+
+ if (chromeVersion) {
+
+ if (FastClick.prototype.deviceIsAndroid) {
+ metaViewport = document.querySelector('meta[name=viewport]');
+
+ if (metaViewport) {
+ // Chrome on Android with user-scalable="no" doesn't need FastClick (issue #89)
+ if (metaViewport.content.indexOf('user-scalable=no') !== -1) {
+ return true;
+ }
+ // Chrome 32 and above with width=device-width or less don't need FastClick
+ if (chromeVersion > 31 && window.innerWidth <= window.screen.width) {
+ return true;
+ }
+ }
+
+ // Chrome desktop doesn't need FastClick (issue #15)
+ } else {
+ return true;
+ }
+ }
+
+ // IE10 with -ms-touch-action: none, which disables double-tap-to-zoom (issue #97)
+ if (layer.style.msTouchAction === 'none') {
+ return true;
+ }
+
+ return false;
+};
+
+
+/**
+ * Factory method for creating a FastClick object
+ *
+ * @param {Element} layer The layer to listen on
+ */
+FastClick.attach = function(layer) {
+ 'use strict';
+ return new FastClick(layer);
+};
+
+
+if (typeof define !== 'undefined' && define.amd) {
+
+ // AMD. Register as an anonymous module.
+ define(function() {
+ 'use strict';
+ return FastClick;
+ });
+} else if (typeof module !== 'undefined' && module.exports) {
+ module.exports = FastClick.attach;
+ module.exports.FastClick = FastClick;
+} else {
+ window.FastClick = FastClick;
+}
View
20 Jok.Pitching/Jok.Pitching/Views/Home/Play.cshtml
@@ -7,15 +7,14 @@
var ML = {
A002: '@R.A002',
A003: '@R.A003',
+ A011: '@R.A011',
+ A012: '@Html.Raw(R.A012)',
}
var RootUrl = '@System.Configuration.ConfigurationManager.AppSettings["SiteUrl"]';
</script>
@Styles.Render("~/Content/css")
<div id="Root">
<div id="Game">
- <div class="balance">
- <span>100</span>
- </div>
<div id="Container">
</div>
</div>
@@ -23,20 +22,29 @@
<div class="start">
<img src="@Url.ContentAbsUrl("~/Images/gamejam.png")" /><br /><br />
<div>
- <button id="StartGame" class="btn btn-default btn-lg">@R.A001</button>
+ <button data-mode="1" class="start_game btn btn-default btn-lg">@R.A001</button>
+ <button data-mode="2" class="start_game btn btn-default btn-lg">@R.A009</button>
+ </div>
+ <div>
+ <button class="top_speakers_btn btn btn-lg btn-danger" data-id="speakers" style="min-width: 220px;">@R.A008</button>
</div>
<div>
- <button class="top_speakers_btn btn btn-lg btn-danger">@R.A008</button>
+ <button class="top_juries_btn btn btn-lg btn-warning" data-id="juries" style="min-width: 220px; margin-top: 10px;">@R.A010</button>
</div>
</div>
<div class="finish">
<div class="highscore">@R.A007 <span></span></div>
<div class="results">@R.A006 <span></span></div>
<div>
+ <button data-mode="1" class="start_game btn btn-default btn-lg">@R.A001</button>
<button id="PlayAgain" class="btn btn-default btn-lg">@R.A004</button>
+ <button data-mode="2" class="start_game btn btn-default btn-lg">@R.A009</button>
+ </div>
+ <div>
+ <button class="top_speakers_btn btn btn-lg btn-danger" data-id="speakers" style="min-width: 220px;">@R.A008</button>
</div>
<div>
- <button class="top_speakers_btn btn btn-lg btn-danger">@R.A008</button>
+ <button class="top_juries_btn btn btn-lg btn-warning" data-id="juries" style="min-width: 220px; margin-top: 10px;">@R.A010</button>
</div>
</div>
</div>

No commit comments for this range

Something went wrong with that request. Please try again.