I need some help to add few audio effects to website. I found some examples like following, audioOn: true audio.muted = false setAudioOn true ref: "audio", attrs: { "id": "projects-audio" } }, [_c('source', { attrs: { "src": "/audio/click.mp3" } playAudio: function playAudio() { this.$parent.$refs.clickAudio.volume = 0.8; this.$parent.$refs.clickAudio.play(); }, I need help to play audio using **play() **, control volume using **volume = 1** What is **workClick: ?** I found it used with sound properties. So, basic needs are play various sounds - on click, background music, control volume of background music, play sound on overlay appears

Member Avatar
Member Avatar
+0 forum 12

Hey everyone, I'm at a stand still at this bit of code. Ultimately, I want to "expand"/slide down a class to show the rest of the hidden content (the list items with the class of ".hide") inside of that containing div. Sliding down the prices, hr line, and the "Get Started" button so that the content that would now be shown at hover, but at sliding back up the now shown content, would slide back to its original state when "not" on hover. I thought that by either taking away the class via jquery would solve the issue, but no. …

Member Avatar
Member Avatar
+0 forum 3

I’ve created modified **CSS reset** based on various reset stylesheets available. Need some help to make it effective & clean. Need some help with typography *, *:before, *:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; margin: 0; outline: 0; padding: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-text-size-adjust: 100%; -moz-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } *:focus { outline: none; } ::-moz-selection { background: #ccc; color: #fff; } ::selection { background: #ccc; color: #fff; } html { line-height: 1.15; -webkit-text-size-adjust: 100%; } body, html { width: 100%; height: 100% } body { font-size: 14px; font-weight: 400; font-style: normal; line-height: 2; margin: 0; padding: 0; …

Member Avatar
Member Avatar
+0 forum 8

Hello, I have been searching around the net looking for solutions to my problem, but none have worked. My issue is that when i redirect using: <meta http-equiv="Refresh" content="0; url=<?php echo $URL; ?>"> The hash tag part of URL gets removed by IE. So example.com/sample#foo will just load as example.com/sample. This happens in all version of IE and appears to be a bug, but the question is how do I get around this issue? Here is the redirect page template for wordpress that I am using: <?php /* Template Name: Redirect */ ?> <?php if (have_posts()) : the_post(); ?> <?php …

Member Avatar
Member Avatar
+0 forum 5

Hi guys, I've got an issue with my angular application, I've got a form which is meant to create a new record (object) and push this object into an array. My set up is the following: I have a book.component.ts whic contains an array of IBooks as such: books: IBook[] = [ { "bookID":356, "bookAuthor":"John Beck", "bookTitle":"The story of my life", "location":"Shelf downstairs", "medium":"paper", "notes":"" }, { "bookID":900, "bookAuthor":"Jack Mills", "bookTitle":"They", "location":"Shelf downstairs", "medium":"PDF", "notes":"This is on my laptop and phone" } ]; This file also contains the static method static createNewRecord($record): void{ console.log("createNewRecord() called"); console.log($record); this.books.push($record); console.log($record); // $event.preventDefault(); …

Member Avatar
Member Avatar
+0 forum 5

Hello all, I am quite impress knowing that Python has been the most popular programming language in July 2018. Check this statistic: https://pypl.github.io/PYPL.html It looks like there is a changing in trends - in 2015 PHP is rank no 2 and now rank 4. While Python rank 3 moves up to rank no. 1. I wonder what makes it so populer? Thanks in advance, Davy

Member Avatar
Member Avatar
+1 forum 3

Hello everyone. I have a string that looks like this (Mango, fruits, and), (Maize, cereals, and), (Mango juice, beverages, and) I would like to convert the above string using php to something similar to this: (Mango[fruits]) AND (Maize[cereals]) AND (Mango juice[beverages]) How can i achieve this in php. I have looked at PHP string replace, substr functions but cannot figure out how to use them to solve my problem. Thanking you in advance

Member Avatar
Member Avatar
+0 forum 27

I have css animation for preloader. I need help to update content smoothly without redirecting page, using following functions $(window).on("popstate", function() { }); window.history.pushState({path: ""},"",""); Update link & content of next page after preloader progressbar animation ends `webkitTransitionEnd ` without redirecting to page. Need help to complete following functions function changeUrl() { } function updateContent() { } ## Html/CSS/Js code (jsfiddle links) ## [after adding 'loading' class to body tag](https://jsfiddle.net/cnv1drx8/1/) ([Full Window](https://fiddle.jshell.net/cnv1drx8/1/show/)) [after removing 'loading' class from body tag](https://jsfiddle.net/v3arfeum/1/) ([Full Window](https://fiddle.jshell.net/v3arfeum/1/show/))

Member Avatar
Member Avatar
+0 forum 3

I have a function that I need help with. The purpose of the function is to sort an array of objects by field. This function was using the PHP function create_function which is now deprecated in PHP 7.2. I've been trying to rewrite the function, but the results return null. Any help in figuring out what's wrong is greatly appreciated. function _list_sort(&$objects, $on, $order = 'ASC') { usort($objects, function(&$a,&$b) use($on, $order) { return ($order === 'DESC') ? strcmp($a[$on],$b[$on]) : strcmp($a[$on],$b[$on]); }); }

Member Avatar
Member Avatar
+0 forum 1

I have a table on my web page that is currently updating with random Data, see below: function changeContent(){ var i = 1; var len = numberRows; var random1 = Math.floor( Math.random() * 90 ) + 10; var random2 = Math.floor( Math.random() * 90 ) + 10; var x=document.getElementById('myTable').rows; var y=x[0].cells; for (; i < len; i++) { var d = new Date(); // for now y=x[i].cells; y[0].innerHTML=eventNumber++; y[1].innerHTML=Math.floor( Math.random() * 90 ) + 10000 y[2].innerHTML= (d.getHours()<10?'0':'') + d.getHours() + ":" + (d.getMinutes()<10?'0':'') + d.getMinutes() + ":" + (d.getSeconds()<10?'0':'') + d.getSeconds(); y[3].innerHTML=Math.floor( Math.random() * 90 ) + 10; y[4].innerHTML=Math.floor( Math.random() …

Member Avatar
Member Avatar
+0 forum 4

Hi, I am a legacay (cobol) developer and wants to learn how to build websites. For this I decided to do a little project for myself. The site would be a places/travel tracker kind. It would show a certain map (ex, London, Taiwan, Greenland). Then you can click on a city on the map which will show pictures/videos/comments of you in that city. Map changes color for the city you have visited or maybe a pin. I have search the web and mostly there are world tracker. I would want a country based one. So my questions are: 1.) What …

Member Avatar
Member Avatar
+1 forum 4

How can I find the parent tr from the closest child tr e.g. from the second child tr, how can I get to the first parent tr? Below is the html table: <table> <tr class="menu"> <td><input type='text' class='parent' value='First Parent'></td> </tr> <tr class="submenu"> <td><input type='text' class='child' value='First Child'> </td> </tr> <tr class="submenu"> <td><input type='text' class='child' value='Second Child'> </td> </tr> <tr class="menu"> <td><input type='text' class='parent' value='Second Parent'></td> </tr> <tr class="submenu"> <td><input type='text' class='child' value='First Child'> </td> </tr> </table> I have tried the following JQuery code: $(this).closest('tr.submenu').closest('tr.menu').find('.parent').val(); $(this).closest('tr.submenu').parent('tr.menu').find('.parent').val(); $(this).closest('tr.menu').find('.parent').val(); $(this).closest('tr.submenu').prevUntil('tr.menu').find('.parent').val(); $(this).closest('tr.submenu').parentsUntil('tr.menu').find('.parent').val(); $(this).closest('tr.submenu').parents(':first-child').find('.parent').val(); All attempts have failed. How can I get the parent …

Member Avatar
Member Avatar
+1 forum 3

Hello, I am looking for a new IDE. I am currently using netbeans to develop a website in php/mysql. I like a lot of things about netbeans, but I don't like that it doesn't come with built in compilers/debuggers. You have to manually go and add/link them on a language-by-language basis. This isn't too bad in theory, but sometimes it doesn't work like it should, which can cause a huge headache. I had a hell of a time getting a debugger to work for php. I am now adding javascript/jquery to the website, and discovered that the debugger I already …

Member Avatar
Member Avatar
+0 forum 3

I have db table called **subscription** and a column called **duration**. I want the column** duration** to be incremented by +1 in every 24 hours until it gets to 30 then stop. I would love the query to start execution if the column duration is = 1.

Member Avatar
Member Avatar
+0 forum 5

Are there any scripts that can go through a collection of PHP files and detect multiple functions with the same name?

Member Avatar
Member Avatar
+0 forum 4

I am using `passport` in `laravel` for authenticating my users in APIs. I am able to authenticate different types of users from different tables and generating different token for them but the routes are not protected. For example. A user can access the routes like this Route::group(['middleware' => 'auth:api'], function () { Route::group(['prefix' => 'v1'], function () { Route::get('get-seller-list','API\v1\SellersController@index'); }); }); and A doctor can access the routes like Route::group(['middleware' => 'auth:sellers'], function () { Route::group(['prefix' => 'v1'], function () { Route::get('get-seller-detail','API\v1\TestController@getDetails'); }); }); but this `middleware` check doesn't seem to be working as I can access all the routes …

Member Avatar
Member Avatar
+0 forum 1

Hi everyone I have a little problem that I'm sure someone here can help me with. I have a web page with a text input field and a couple of submit button. The user would enter something in the text field and then click on one of the buttons. Each button opens a new page. But all of this is pretty standard coding, so I'm trying to do this a bit differently... When the user first arrive at this page, the two button are not visible. The user then enters something, which is checked with PHP, using [CODE]if (isset($_POST['Submit'])) { …

Member Avatar
Member Avatar
+0 forum 5

Hi, I'm new to JSP. I want a sample code to call a java class on button click in jsp.

Member Avatar
Member Avatar
+0 forum 3

Is there possible chance of changing the WooCommerce "Add to Cart" button functionality or removing it and creating new button, inside the item page? I found this code but it only replaces the button on the item itself and not in the item page add_filter( 'woocommerce_loop_add_to_cart_link', 'replace_default_button' ); function replace_default_button(){ return '<button>Text a Dealer</button>'; } https://screenshotscdn.firefoxusercontent.com/images/5b7bf7ed-f1d5-4cc1-86e7-157970f10ea4.png

Member Avatar
+0 forum 0

I have 3 tabs on this page http://fiftyallstars.com/tabs.html that I'm trying to target with 3 distinct direct links. Is it possible to have a script read an appended URL to remove/add the necessary active class to achieve the results I'm attempting to achieve. Any other suggestions would be great as well. PS I'm not great at coding, but I'll try my hardest. Thanks!

Member Avatar
Member Avatar
+0 forum 2

Ok, So I have an instance of **Windows Server 2012 R2** installed to a virtual machine on my local development PC with **IIS** . The idea being I need to practice and learn about how to deploy sites to web servers. I have tinkered around with some of the settings, but I am not entirely sure how to set up this server for **.NET development**. Does anybody have a clear cut translation of what exactly I am supposed to do to set this server up so that I can deploy to it? I am entirely confused right now because I …

Member Avatar
Member Avatar
+0 forum 3

I recently had to mass insert a really large text file of strings into MySQL. Here's how I did it.

Member Avatar
Member Avatar
+1 forum 1

I'm creating this page (http://www.50allstars.com/2018/05/test-menu.html) and would like to be able to directly link to a particular tab if need be. I've found a site (https://css-tricks.com/better-linkable-tabs/) that says a way for this to be done, but I'm not sure how to implement it or if there's a more simple & elegant solution out there. (https://css-tricks.com/examples/OrganicTabsReplaceState/?tab=jquerytuts2) Any help would be greatly appreciated. Thanks!

Member Avatar
Member Avatar
+0 forum 2

The End.