Posts by Maurício Krüger • 1,848 points
101 posts
-
0
votes1
answer1205
viewsA: How to leave a fixed div accompanying the scroll?
Can you use position: Fixed? You can use Bootstrap affix and set from where it will be fixed. Example: z-index: 11; position: fixed; top: calc(50vh - 86px); right: 1%; This CSS will leave fixed,…
-
1
votes2
answers2354
viewsQ: Browser Identifier - Internet Explorer
I need to know when the user accesses the website through Internet Explorer, run a CSS. So far so good, follow the code I used to apply CSS: <!--[if IE]> <link rel="stylesheet"…
-
6
votes4
answers889
viewsA: Character limit
Codeigniter itself has a function for this, I believe it should be using because it tagged the same in the question. You can limit by characters or by words, follow code: <?php print…
-
2
votes1
answer620
viewsA: Set a default zoom for google maps
Follows script with mouse scrolling options, zoom, among other options: <script type="text/javascript" src="https://maps.google.com/maps/api/js"></script> <script> //Chamar mapa…
-
0
votes2
answers268
viewsA: Codeigniter multilingual site
When I made a website with two languages in Codeigniter some time ago.. I used Cookie. I set the flags at the top the next given inside an A: <a href="<?php print base_url();…
-
1
votes2
answers178
viewsA: Destroy Angularjs function
With ng-click in each category playing the function, I was able to destroy the slider and start it again with the following function: vm.clicou = function(){ $('.sliderCol').flexslider("destroy");…
-
0
votes2
answers178
viewsQ: Destroy Angularjs function
I have a page in my project that contains several categories and in each category, has a Flexslider with images. Each category is displayed once and when clicking another, the previous one is hidden…
-
15
votes4
answers15337
viewsQ: Security - What is a KEY API?
I’m seeing this word in almost every service application.. What a KEY API really is and what its uses are? How it really works? Also please, if possible, explain the difference between public and…
-
0
votes1
answer91
viewsQ: Flexslider - Loading with still images
I’m using Flexslider, but while the images load and the function is not executed, it plays one image under the other, generating a huge scroll bar and, after the execution and loading of the images,…
-
2
votes1
answer1218
viewsQ: Create share button on Linkedin
I am developing a Web project and in this project contains the button to share on Linkedin (customized). I’ve worked with sharing Facebook and Twitter and so far is working normal, but I’ve never…
-
0
votes1
answer131
viewsA: Flexslider - Thumbnails Vertically
I managed to do otherwise, I just left as fixed the Transition that the flexslider makes and I set maximum height and rolled in the Thumbs, creating a vertical scroll bar in the images. Follows…
-
1
votes1
answer131
viewsQ: Flexslider - Thumbnails Vertically
Hello, I’m using a Flexslider to do the listing of page images, but I wonder if there is the option to list the Carousel images vertically, at the moment, they are going through the horizontal.…
-
1
votes2
answers149
viewsQ: Fullpage JS, running on different pages
I’m developing a project in Angularjs and I’m using Fullpage.js to scroll the pages. So far so good, the problem is the following: As I have internal pages, I also need to use the scrolling of the…
-
2
votes1
answer77
viewsA: Chartjs 2.0 Rotation
Do you really need the caption? Because when you hover over each bar, the caption appears... Try to insert this configuration in the script: options: { legend: { display: false } } So it will not be…
-
6
votes3
answers3209
viewsA: Chart JS - hide caption
I got the answer, I must insert the following line in the script: options: { legend: { display: false } } That would look like this: var ctx = document.getElementById("campos_um"); var myChart = new…
-
2
votes3
answers3209
viewsQ: Chart JS - hide caption
Hello! I’m using Chart.js in a project, but I need to hide the caption that is displayed above the chart. Someone who has worked with this chart knows how to hide this part? Follow the link to the…
-
1
votes1
answer83
viewsQ: Facebook, Google+ and Twitter sharing goals
Whenever I enter goals for shares on sites in general, I follow the patterns below, the question is as follows: There are more goals that are considered important in these three social networks that…
-
2
votes2
answers1225
viewsQ: Catch anchor url with PHP
I need to get the data from an anchor in the url, follow link: http://192.168.110. 4/newspaper/1-jornal1#8 I need that one ID 8 that is at the anchor, the problem is that I can’t use Javascript to…
-
1
votes1
answer56
viewsQ: OG Facebook Goals: Doubt
Whenever I use OG goals for Facebook sharing, I insert them in the header and hide the current site description and title goals. The doubt is as follows: the OG goals need to be in the site header?…
-
0
votes2
answers517
viewsA: pickadate Angular - Translation
To translate, I used the en locale of Angular itself, follow link to view: http://imasters.com.br/front-end/javascript/serie-angularjs-usando-locale-angularjs-parte-04/?…
-
0
votes2
answers681
viewsA: How to disable button after sending message?
Do the following thing: In the tag form, enter the following code: onsubmit="this.enviar.value = 'Enviando...'; this.enviar.disabled = true;" After, on the Ubmit button, enter the following code:…
-
1
votes2
answers615
viewsQ: Error page in Angularjs
Well, I’m new to Angularjs. I have a project, a single page with routes configured with a controller. Views are loaded into the element of the index.html page. Inside the controller I am making an…
-
0
votes2
answers351
viewsQ: Change selected menu according to URL segment in Angular
I’m developing a project and I’m using Angular, I need when accessing the internal page, the menu is selected, until then beauty, but the problem is when the internal page contains Lug or some…
-
0
votes2
answers1235
viewsA: How to display mouse inactivity element?
About getting the mouse stopped I don’t know anything specific but you can do a javascript to display the div after some time... follow example: <script type="text/javascript"> function…
-
1
votes4
answers657
viewsA: How to organize many Ivs in Bootstrap (Image)
You can make a PHP, creating a sum before listing each list, if the sum is = 4 which is the amount of Li per line, plays a div clearfix and Zera the sum to perform again, another tip is to use the…
-
1
votes2
answers6814
viewsA: Get current date/time Angularjs
Following answer: function dataHoje() { var data = new Date(); var dia = data.getDate(); var mes = data.getMonth() + 1; if (mes < 10) { mes = "0" + mes; } var ano = data.getFullYear(); var horas…
-
0
votes2
answers6814
viewsQ: Get current date/time Angularjs
I need to display on the page the current date followed by the current time, It follows what I have done so far, I only need to display the time if it continues as it is, follow code: function…
-
2
votes2
answers517
viewsQ: pickadate Angular - Translation
I’m using the Angular pickadate only it is in English, I need to leave in Portuguese, could anyone help? Follows code: $('.datepicker').pickadate({ selectMonths: true, selectYears: 15, language:…
-
1
votes2
answers226
viewsQ: Angular Datepicker - Prev and Next
I am using the following calendar in my project: https://angular-ui.github.io/bootstrap/#/datepicker I need to customize the back and forward calendar buttons, I disabled these default calendar…
-
0
votes2
answers102
viewsQ: Download extensive file on website
I have the following problem: On a website that I developed for a client, contains a page to download audio, follows code to download audio: <a href="<?php print base_url();…
-
1
votes1
answer1297
viewsQ: Set Timezone in Codeigniter
I have a website, that in the news it automatically registers the date and time, only when I register, the registered time is 3 hours early. I’m thinking it must be some Codeigniter Timezone setup,…
-
0
votes1
answer68
viewsA: MSG Format File - Outlook Signature
I figured out how, just open the file that is in msg format, then it will be displayed in message format in Outlook, after it goes in/save file and chooses html format. After editing the file that…
-
1
votes1
answer68
viewsQ: MSG Format File - Outlook Signature
I have a file in msg format, if I click on it twice it opens in outlook with a configured signature. However it contains images, does anyone know how to edit the location that loads the images in…
-
1
votes4
answers18875
viewsA: Change color of button text by clicking
Following button option: OBS: Using Sass: .botao_licitacao { background: #003366; border: none; box-shadow: none; border-radius: 0px; height: em(45); font-weight: bold; &:hover{ background:…
-
0
votes4
answers8751
viewsA: Change color marker li
You can put css in ul: ul { list-style-image: url('urlimagem'); } already resolves ;)
-
2
votes1
answer83
viewsA: Mysql case - display a certain amount
follow answer, I ended up having to make a Union :) (SELECT p.id, p.titulo, p.id_categoria, c.quantidade_destaque, p.destaque_interno, c.nome FROM tb_post p JOIN tb_post_categoria c ON…
mysqlanswered Maurício Krüger 1,848 -
1
votes1
answer83
viewsQ: Mysql case - display a certain amount
I’m having a big doubt in a sql: The website is divided into 3 categories, each category is highlighted, only that the customer has requested that wants to limit the amount of product highlighted by…
mysqlasked Maurício Krüger 1,848 -
1
votes2
answers348
viewsA: OG Facebook Goals - No recognition of accentuation
Solved, the problem is that the project was done by someone else by the Net Beans program and the files were saved in ASC format, only saved view by view in UTF-8 and solved the problem.
-
2
votes2
answers348
viewsQ: OG Facebook Goals - No recognition of accentuation
Hello! On my site, I put the og goals of Faceook, so far so good, the problem is that the title of the site and the news contains accents and when sharing the fields with accents are not displayed.…
-
0
votes1
answer65
viewsA: How do I display a load bar when my php page performs a task?
Maybe you can put some effect on the Submit button, like this example that Boostrap uses. http://getbootstrap.com/javascript/#Buttons-stateful You can view something related in the following post:…
phpanswered Maurício Krüger 1,848 -
2
votes2
answers22742
viewsA: View Div in Mobile Version Only
Follows a function you may be using: function verifica_device() { $android = strpos($_SERVER['HTTP_USER_AGENT'], "Android"); $palmpre = strpos($_SERVER['HTTP_USER_AGENT'], "webOS"); $berry =…
-
2
votes1
answer499
viewsA: Back 2 pages with php / create session from last accessed URL
As seen, I used a session: $_SESSION['url_assine'] = base_url().'assinatura'.$id; redirect('erro/efetuar_login_assinatura'); and inside the error/effective_login_signature controller I take the…
-
1
votes1
answer499
viewsQ: Back 2 pages with php / create session from last accessed URL
I would like to know how to create a session of the last accessed url, why this: I have a login system on the site that if the person clicks to buy the product and is not logged in, it is directed…
-
0
votes1
answer840
viewsQ: Youtube iframe with full link
Hello! I wonder if there is any iframe or something like that I can get video on my site, in manageable case, usually youtube embed are with video ID. I wonder if there is one that I can paste the…
-
0
votes1
answer158
viewsQ: Open PDF when accessing Website
I need that when accessing the website, to be loaded a PDF, someone knows to inform if I have to create some index and to insert some iframe and to say to open the pdf?
pdfasked Maurício Krüger 1,848 -
1
votes2
answers559
viewsA: Make a condition to check URL
you can make an if using $this->Uri->segment(1), Example: <?php if($this->uri->segment(1) == 'login'){ ?><li><p class="navbar-btn"> <a href="#" class="btn…
-
1
votes2
answers2057
viewsA: Upload images to Codeigniter
Hello! I use this method: Controller: function cadastrar() { try { foreach ($_FILES as $field => $file) { if ($file['error'] == 0) { if ($this->upload->do_upload($field)) { $data =…
-
1
votes2
answers740
viewsA: Codeigniter media upload error
Friend, this error occurs because the destination where the file is being sent is incorrect, or the destination folder is not allowed to insert the file. Check if the folder permission is 777 and…
-
0
votes1
answer287
viewsQ: Watermark image upload in codeigniter
Hello! I’m trying to insert watermark when registering the image, but the image is upada, only it does not insert the watermark and does not return errors, someone has some suggestion? Follows code…
-
4
votes1
answer639
viewsA: Show week only with Fullcalendar events
Follows code: follow js that takes initial date and final date registered and limits the V and next arrows of fullcalendar: viewRender: function(view,element) { var now = moment('<?php print…