This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var powiekszenie = 15 | |
$(document).ready(function () { | |
$("#przesuwanie3").on("input", function () { | |
powiekszenie = parseInt($("#przesuwanie3").val()) | |
$("#mapa").gmap3({ | |
map: { | |
options: { | |
zoom: powiekszenie |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta charset="utf-8"/> | |
<title>kółko i krzyżyk</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> | |
<script> | |
var rozmiar = 3 | |
var ruch = "x" | |
var kolor = "black" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fenway = new google.maps.LatLng(42.345573, -71.098326) | |
$("#map").gmap3({ | |
map: { | |
options: { | |
center:[50.0469245, 19.9208745], | |
zoom: 13 | |
}, | |
streetviewpanorama: { | |
options: { | |
container: $(document.createElement("div")).addClass("googlemap").insertAfter($("#draw")), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//http://wklej.to/viZxk | |
var rozmiarPlanszy = 10; | |
var tablicaStatkow = new Array(rozmiarPlanszy).fill(0) | |
tablicaStatkow[0] = new Array(rozmiarPlanszy).fill(0) | |
document.getElementById("plansza").style.width=32*rozmiarPlanszy+"px"; | |
//GENERUJE PLANSZE | |
for(i=0;i<rozmiarPlanszy;i++){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml" lang="pl"> | |
<head> | |
<title>T: Project</title> | |
<meta charset="utf-8"> | |
<script src="lib/jquery-3.1.0.min.js"></script> | |
<script src="lib/gmap3.min.js"></script> | |
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDsbtBhmgCISJQGwNuoGAIXQOOdrhBj-vI"></script> | |
<script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function saveToServer(nazwa) { | |
$.ajax({ | |
type: "POST", | |
url: window.location.href.replace("index.html", "") + "Server.aspx", | |
data: { | |
operation: "save", | |
data: JSON.stringify({ | |
nazwa: nazwa, | |
kolor: color, | |
time: new Date(), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<link rel="stylesheet" href="style.css"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="css/font-awesome.min.css"> | |
</head> | |
<body> | |
<div id="topBar"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addSocketWrapper() { | |
if("undefined" != typeof WebSocket) { | |
var a = parseInt(localStorage.simulatedLatency) / 2; | |
if(a > 0) { | |
var b = WebSocket; | |
WrappedWebSocket = function(c) { | |
var d = new b(c); | |
d.binaryType = "arraybuffer", this.onclose = function() {}, this.onopen = function() {}, this.onmessage = function() {}; | |
var e = this; | |
d.onclose = function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async Task Delay(int t) { | |
await Task.Delay(t); | |
} | |
private async void btClick(object sender, EventArgs e) { | |
await Delay(1000); //czekam nie blokując wątku | |
MessageBox.Show("DONE"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace macierze | |
{ | |
// Uwagi ogólne |