This file contains 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
<script> | |
var xhr = new XMLHttpRequest(); | |
xhr.onreadystatechange = function(){ | |
if(xhr.readyState === 4){ | |
document.getElementById('ajax').innerHTML = xhr.responseText; | |
} | |
}; | |
xhr.open('GET','sidebar.html'); | |
xhr.send(); |
This file contains 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
<script> | |
var xhr = new XMLHttpRequest(); | |
xhr.onreadystatechange = function(){ | |
if(xhr.readyState === 4){ | |
document.getElementById('ajax').innerHTML = xhr.responseText; | |
} | |
}; | |
xhr.open('GET','sidebar.html'); | |
xhr.send(); |
This file contains 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> | |
<head> | |
<meta charset="utf-8"> | |
<link href='//fonts.googleapis.com/css?family=Varela+Round' rel='stylesheet' type='text/css'> | |
<link rel="stylesheet" href="css/main.css"> | |
<title>AJAX with JavaScript</title> | |
<script> | |
This file contains 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
<?php | |
$var = get_sub_field('acf_field'); | |
switch ($var) { | |
case 'radio-item-1': | |
# code... | |
break; | |
case 'radio-item-2': |
This file contains 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
//: Playground Swift - Login e senha | |
import UIKit | |
var username = "[email protected]" | |
var password = "1234" | |
if username == "[email protected]" && password == "1234"{ | |
print("Acesso liberado") | |
} else if username != "[email protected]" && password != "1234" { |
This file contains 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 numeroAleatorio = Int(arc4random_uniform(6)+1) |
This file contains 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
override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) { | |
self.view.endEditing(true) | |
} | |
func textFieldSholdReturn(textField:UITextField!) -> Bool { | |
//nomeDoCampo é o text field que vamos trabalhar | |
nomeDoCampo.resignFirstResponder() | |
return true | |
} |
This file contains 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
// | |
// ViewController.swift | |
// baixando-conteudo-da-web | |
// | |
// Created by Felipe Genuino on 29/12/15. | |
// Copyright © 2015 Felipe Genuino. All rights reserved. | |
// | |
import UIKit |
This file contains 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
// | |
// ViewController.swift | |
// mapa | |
// | |
// Created by Felipe Genuino on 31/12/15. | |
// Copyright © 2015 Felipe Genuino. All rights reserved. | |
// | |
import UIKit | |
import MapKit |
OlderNewer