Я пробовал использовать WebView по умолчанию, но это не сработало.
public partial class ContentPreviewPage : ContentPage
{
public ContentPreviewPage(
string url
)
{
InitializeComponent();
contentView.Source = url;
}
Это мой сайт


и это связано с js
function drag(ev) {
ev.dataTransfer.setData("text", ev.target.id);
ev.dataTransfer.setData("value", ev.target.value);
}
function drop(ev, dropableValue, dropid) {
ev.preventDefault();
var data = ev.dataTransfer.getData("text");
attempts = parseInt($('#attempts').text());
correctans = parseInt($('#correctans').text());
if (attempts != 0) {
attempts--;
$('#attempts').text(attempts);
var value = ev.dataTransfer.getData("value");
if ($('#' + data).val()== dropableValue) {
showAlert(1);
document.getElementById(dropid).appendChild(document.getElementById(data).cloneNode(true));
correctans++;
$('#correctans').text(correctans + '/' + totalquestion);
if(attempts == 0)
{
$('.optionDiv :input').attr('disabled', true);
var percentage = (correctans/totalquestion)*100;
completedAlert(attempts, correctans, percentage.toFixed(2));
}
$("#" + data).removeClass("answerclass");
$('#' + dropid).removeProp("ondragover");
$('#' + data).removeProp("draggable");
count += 1;
if (count == 10) {
$('input').attr('disabled', true);
var percentage = (correctans / totalquestion) * 100;
completedAlert(attempts, correctans, percentage.toFixed(2));
}
}
else {
showAlert(2);
if(attempts == 0)
{
$('.optionDiv :input').attr('disabled', true);
var percentage = (correctans/totalquestion)*100;
completedAlert(attempts, correctans, percentage.toFixed(2));
}
}
}
else {
$('input').attr('disabled', true);
var percentage = (correctans / totalquestion) * 100;
completedAlert(attempts, correctans, percentage.toFixed(2));
}
}
Подробнее здесь: https://stackoverflow.com/questions/790 ... nt-working
Мобильная версия