Questions tagged as 'script'

1
answer

Unix Grep command handling the output if there is no result

Good morning !! I'm creating a script and I need when I make a grep on a line and can not find it, it returns the parameter I looked for! grep "192.0.0.1" /file.txt In the .txt file it does not have the string "192.0.0.1" I want it to retu...
asked by 12.02.2018 / 14:39
1
answer

jsPDF include css

How do I save this DIV, with css formatting, if it's easier to do with table, so can I, so what I need is to just show this DIV with value inside. It will be generated side by side. var doc = new jsPDF(); var specialElementHandlers = {...
asked by 11.08.2017 / 02:02
2
answers

How to get 2 decimal places [duplicate]

How do I show only 2 decimal places after the comma. I have the following script: <script> function DescontoPorcentagem() { var bruto = $("#tot_bruto").val(); var porcentagem = $("#Tot_desc_prc").val();...
asked by 02.09.2017 / 16:05
2
answers

How to open a pop after a few seconds and close after a few seconds after opening

Code updated and working. Contributed by Leo Caracciolo $(document).ready( function() { $('.popScroll').show(10000); $('.popScroll').delay(20000).fadeOut(); $("#close").click(function(){ $('.popScroll').hide();...
asked by 08.06.2017 / 22:17
1
answer

Batch script - move parent directory and subdirectory

How do I create a . bat to move all files in specific or better only those with .txt extension of one directory and all its subdirectories to another folder.     
asked by 27.03.2016 / 08:26
1
answer

Script that deletes files by the extensions

I want to delete several types of extensions, so I do not know if I'm incrementing in batch, someone could help me and teach me how to increment the if in the code below: @echo off cd E:\comp_softwares pause Del /f /s /q *.mp3 pause cls echo O...
asked by 19.05.2016 / 21:05
1
answer

Add Players in script code

I have the following code: var buttons = $('#videoGallery .vid'); var liHeight = $('#videoGallery li').height(); buttons.click(function(){ var videoID = $(this).attr('data-videoID'); var videos = $('<div id="meuVideo"> <iframe width=...
asked by 16.12.2015 / 16:15
2
answers

Failed to execute Shell C #

Friends, I ask for help to solve a small problem. I'm running SQL command through sqlCmd and Shell in C #, but the file is in a folder that contains "space" as follows. Path: D: \ Sandboxes \ CIA Project \ 3-Development \ Scripts \ DDL \...
asked by 15.07.2015 / 17:45
1
answer

Resize Image Wordpress Script

I found this script for wordpress, to get the image of the post and add it to the wordpress theme. See the script: function catch_that_image() { global $post, $posts; $first_img = ''; $new_img_tag = ""; ob_start(); ob_end_clean(); $output...
asked by 23.06.2015 / 16:48
1
answer

Problem with PHP in Script checking Session

I have a form but it is hidden only when you click on a button in the nav called this function: <script> function verifLog(){ <?php session_start(); if (isset($_SESSION['user'])){ echo "<script> document...
asked by 03.07.2015 / 00:47