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
//Coloca a biblioteca Jquery no seu HTML. | |
jQuery("#img_principal").change(function() { //campo de imagem | |
var fr = new FileReader; | |
fr.onload = function() { | |
var img = new Image; |
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
<?php | |
$app = JFactory::getApplication(); | |
$this->setTitle( 'meu titulo de página' ); | |
//nem sempre funciona | |
?> | |
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
server { | |
###################################################################### | |
## The Master .htaccess - NginX adaptation | |
## | |
## Version 3.3 | |
## | |
## This file is designed to be the template NginX server configuration file | |
## for your Joomla! sites. You should go through all of its sections and | |
## modify it to match your site. Most notably, all instances of example.com | |
## and example\.com should be replaced with your real domain name. |
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
<?php defined('_JEXEC') or die; | |
//CÓDIGO CRIADO POR Marcio Pinheiro, PARA VERIFICAR SE UM USUÁRIO VIU UM ARTIGO QUE DEVERIA VER. | |
// CONTATO: [email protected], https://www.facebook.com/MarcioP001 | |
//Criei uma tabela manual no banco de dados com nome "_log_diario"; | |
//Com os campos "id, article_id, user, data, ip" | |
//O campo id é auto incremento, | |
//O campo article_id é do tipo inteiro |
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
/* arquivo mainbody.php */ | |
/* templates/seb_one/positions/protocolo_acompanhamento/site/mainbody.php */ | |
<script type="text/javascript"> | |
jQuery(document).ready(function(){ | |
jQuery("#protoca_num").change(function(){ | |
var idnum = jQuery(this).val(); | |
jQuery.ajax({ |
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
$(document).ready(function(){ | |
$.get( "http://seu site/", function( data ) { | |
data = typeof data == 'string' ? JSON.parse(data) : data; | |
data.forEach(function(elementoDaArray) { | |
var div = document.createElement('div'); |
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 lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>JSON Sample</title> | |
</head> | |
<body> | |
<div id="resultado"></div> | |
<div id="resultado2"></div> |
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 lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>JSON Sample</title> | |
</head> | |
<body> | |
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 onAppReady() { | |
if( navigator.splashscreen && navigator.splashscreen.hide ) { // Cordova API detected | |
navigator.splashscreen.hide() ; | |
} | |
} | |
// document.addEventListener("deviceready", onAppReady, false) ; | |
// document.addEventListener("onload", onAppReady, false) ; |
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
<script type="text/javascript"> | |
jQuery(document).ready(function($){ | |
/* Thanks to CSS Tricks for pointing out this bit of jQuery | |
http://css-tricks.com/equal-height-blocks-in-rows/ | |
It's been modified into a function called at page load and then each time the page is resized. One large modification was to remove the set height before each new calculation. */ | |
equalheight = function(container){ |