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
export class Datatable { | |
constructor(selector) { | |
this.table = null; | |
this.url = null; | |
this.buttons = [ | |
// { extend: 'copy', className: 'btn' }, | |
// { extend: 'csv', className: 'btn' }, | |
// { extend: 'excel', className: 'btn' }, | |
// { extend: 'pdfHtml5', className: 'btn', exportOptions: { columns: ':not(.no-export)' } }, | |
// { extend: 'print', className: 'btn' }, |
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
// Arquivo layouts/default.vue | |
<template> | |
<div class="layout"> | |
<Header /> | |
<ContactInfo /> | |
<Nuxt /> | |
<Footer /> | |
</div> | |
</template> |
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 | |
// For more details see: http://laraget.com/blog/implementing-infinite-scroll-pagination-using-laravel-and-jscroll | |
namespace App\Http\Controllers\InfiniteScrolling; | |
use App\Comment; | |
use Illuminate\Http\Request; | |
use App\Http\Requests; | |
use App\Http\Controllers\Controller; |
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
<template> | |
<form class="needs-validation" novalidate="" @submit.prevent="submit"> | |
<div class="row g-3"> | |
<div class="col-sm-6"> | |
<label for="cnpj" class="form-label">CNPJ:</label> | |
<input | |
type="text" | |
class="form-control" | |
id="cnpj" | |
placeholder="" |
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
<body id="tinymce" class="mce-content-body " data-id="texto" contenteditable="true" spellcheck="false"> | |
<section> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-lg-12 center"> | |
<h2 class="uppercase text-align center;">Crise socioeconômica e política <sup>1</sup></h2><br> | |
<div class="col-lg-12 center text-justify"> | |
<p class="text-info recuo lead">Tendo em vista estudos realizados pelo Grupo do Movimento REAGE BRASIL, sugere-se que a maneira mais precisa para evitar uma crise de proporções ainda maiores e prevenir outras futuras, é tratar os três pontos a seguir:</p> | |
<p class="text-info recuo lead">a) revisar a política assistencialista;</p> | |
<p class="text-info recuo lead">b) cortar gastos públicos e,</p> |
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
tinymce.init({ | |
selector: '.texto', | |
forced_root_block : '', | |
valid_elements : '*[*]', | |
height: 500, | |
language: 'pt_BR', | |
end_container_on_empty_block: true, | |
branding: false, | |
plugins: 'print preview searchreplace autolink directionality visualblocks visualchars fullscreen image link media template code table charmap hr nonbreaking anchor toc insertdatetime advlist lists wordcount imagetools textpattern help', | |
toolbar1: "bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | styleselect formatselect fontselect fontsizeselect", |
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
/* | |
* Função CacularIdade | |
* Função para calcular a idade de uma pessoa, tendo como base o dia de hoje | |
* @params data - String referente à data de nascimento da pessoa, no formato dd/mm/yyyy | |
* @return Retorna uma string com a idade da pessoa em anos. | |
*/ | |
function calcularIdade(data) { | |
var now = new Date(); | |
var today = new Date(now.getYear(),now.getMonth(),now.getDate()); |
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
# based on digital ocean for 18.04 | |
$ sudo apt update | |
$ sudo apt install postgresql postgresql-contrib | |
# make a new non-postgres user for the system without switching roles | |
$ sudo -u postgres createuser --interactive | |
$ sudo -u postgres createdb <your-user-name> | |
# setup a db password for user |
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
unction getReservedItens() { | |
let nr_ord_produ = $("#nr-ord-produ").val(); | |
let pto_controle = $("#pto-controle").val(); | |
let tipo_solicitacao = $(".tipo-material:checked").val(); | |
if (!nr_ord_produ) { | |
swal( | |
"Oops", | |
"Você deve preencher o campo Ordem de Produção!", | |
"warning" |
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
/* ============================================= | |
5.0 - Home | |
============================================= */ | |
.full-home {min-height: 100vh;} | |
.half-home {min-height: 50vh;padding-top: 150px;padding-bottom: 150px;} | |
.home-subscribe .form-control {height: 60px;} | |
.particles-home, | |
.particles-home canvas, | |
.particles-home .particles-js-canvas-el {position: absolute !important; left: 0 !important; right: 0 !important; top: 0 !important; bottom: 0 !important; height: 100% !important; width: 100% !important; } |
NewerOlder