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
| /* | |
| Mesmo colocando no config do ckeditor a toolbar nunca aparecia, pois aqui dentro eu | |
| tive que forçar para ser anexada ao toolbar insert por exemplo. | |
| */ | |
| CKEDITOR.plugins.add('strinsert', | |
| { | |
| requires : ['richcombo'], | |
| init : function( editor ) | |
| { | |
| //tag, texto, tooltip |
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
| items.forEach(function(item){ | |
| console.log(item.id); | |
| }); | |
| //ou | |
| response.data.forEach(function(item){ | |
| console.log(item.id); | |
| }); |
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 ($) { | |
| $.postJSON = function (url, data) { | |
| var o = { | |
| url: url, | |
| type: "POST", | |
| dataType: "json", | |
| contentType: 'application/json; charset=utf-8' | |
| }; | |
| if (data !== undefined) { | |
| o.data = JSON.stringify(data); |
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> | |
| <head> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <style> | |
| * { | |
| box-sizing: border-box; | |
| } | |
| 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> | |
| <xs:element name="versao_arquivo"> | |
| <xs:simpleType> | |
| <xs:restriction base="xs:decimal"> | |
| <xs:enumeration value="2.3"/> | |
| </xs:restriction> | |
| </xs:simpleType> | |
| </xs:element> | |
| <xs:element name="valor_nota_fiscal" type="xs:string"/> |
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 src="https://code.jquery.com/jquery-1.12.4.js" integrity="sha256-Qw82+bXyGq6MydymqBxNPYTaUXXq7c8v3CwiYwLLNXU=" crossorigin="anonymous"></script> | |
| <input type="text" name="filtrofinal" id="filtrofinal" value="http://www.exampel.com/filters/filter?pagina=1" style="width:90%"> | |
| <br> | |
| <a href="javascript:updateFiltroFinal('cor', 17)">cor 17</a> | |
| <a href="javascript:updateFiltroFinal('cor', 18)">cor 18</a> | |
| <a href="javascript:updateFiltroFinal('cor', 19)">cor 19</a> | |
| <a href="javascript:updateFiltroFinal('tamanho', 12)">tamanho 12</a> | |
| <a href="javascript:updateFiltroFinal('amor', 1)">amor 1</a> |
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 RemoveAccents(strAccents) { | |
| var strAccents = strAccents.split(''); | |
| var strAccentsOut = new Array(); | |
| var strAccentsLen = strAccents.length; | |
| var accents = 'ÀÁÂÃÄÅàáâãäåÒÓÔÕÕÖØòóôõöøÈÉÊËèéêëðÇçÐÌÍÎÏìíîïÙÚÛÜùúûüÑñŠšŸÿýŽž'; | |
| var accentsOut = "AAAAAAaaaaaaOOOOOOOooooooEEEEeeeeeCcDIIIIiiiiUUUUuuuuNnSsYyyZz"; | |
| for (var y = 0; y < strAccentsLen; y++) { | |
| if (accents.indexOf(strAccents[y]) != -1) { | |
| strAccentsOut[y] = accentsOut.substr(accents.indexOf(strAccents[y]), 1); | |
| } else |
NewerOlder