swal({ title: '', content: { element: "div", attributes: { innerHTML: res.mensagem }, }, icon: "success" })
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 | |
$mrss =<<<EOS | |
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" | |
xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"> | |
<channel> | |
<title>My Movie Review Site</title> | |
<link>http://www.foo.com</link> | |
<description>I review movies.</description> |
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
// IIFE - Immediately Invoked Function Expression | |
(function(yourcode) { | |
// The global jQuery object is passed as a parameter | |
yourcode(window.jQuery, window, document); | |
}(function($, window, document) { | |
// The $ is now locally scoped |
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
// IIFE - Immediately Invoked Function Expression | |
(function($, window, document) { | |
// The $ is now locally scoped | |
// Listen for the jQuery ready event on the document | |
$(function() { | |
// The DOM is ready! |
Permite criar componentes com estilos integrados
https://github.com/styled-components/styled-components
Cria máscara a partir de uma string utilizando um pattern => '(99) 9 9999-999'
https://github.com/brunokrebs/mask-js
window.$ = window.jQuery = require('jquery')