Posts

Featured post

jquery - First image on a Nivo Slider appears distorted -

i have nivo slider on site , every time reload first image on slider appears stretched height, don't know reason, defined max-height fixed value , have added height: auto !important; .nivo-main-image even facing same problem without solution, appreciate you'll. here code: ** .nivoslider { position:relative; width:100%; height:auto; overflow: hidden; } .nivoslider img { position:absolute; top:0px; left:0px; max-width: none; } .nivo-main-image { display: block !important; position: relative !important; width: 100% !important; height:auto !important; } /* if image wrapped in link */ .nivoslider a.nivo-imagelink { position:absolute; top:0px; left:0px; width:100%; height:100%; border:0; padding:0; margin:0; z-index:6; display:none; background:white; filter:alpha(opacity=0); opacity:0; } /* slices , boxes in slider */ .nivo-slice { display:block; positio

android - socket.io does'nt work on chrome mobile, but it does in incognito mode -

i'm working nodejs , socket.io under angularjs. the sockets work on desktop (all browsers). not on mobile. well... socket d'ont work on chrome mobile, expect in incognito mode. here bit of code: server side: io.on('connection', function(socket){ user = { id: socket.id, socket: socket }; console.log('connection received'); console.log(user.id); socket.emit('files', lib.all()); client side socket.on('files', function(data){ var streams = data; if(streams){ $scope.streams = streams; } }); the lib.all() function work fine. , i've got angular factory handle socket.io (which work fine). in chrome mobile socket not received or emit anything. work expected in incognito mode. work in firefox android. i'm not expert in android neither in chrome. suspect there special/strange happening. firewall? proxy? does know workaround this? thanks, , have day! p.s : on ch

Wordpress menu and WooCommerce categories -

is possible add categories/subcategories links automatically wp menu woocommerce plugin? have many categories (20) , more subcategories (100+) , need them shown in main menu @ top, in hierarchical way. have tried "appearance->menu" section select categories @ once in menu, messed up, no hierarchy @ all. there solution avoid inserting categories/subcategories manually menu items? please check plugin https://wordpress.org/plugins/jc-submenu/screenshots/ with need 1 time add menu showing screenshot

mocha - How to unit test file upload with Supertest -and- send a token? -

how can test file upload token being sent? i'm getting "0" instead of confirmation of upload. this failed test: var chai = require('chai'); var expect = chai.expect; var config = require("../config"); // contains call supertest , token info describe('upload endpoint', function (){ it('attach photos - should return 200 response & accepted text', function (done){ this.timeout(15000); settimeout(done, 15000); config.api.post('/customer/upload') .set('accept', 'application.json') .send({"token": config.token}) .field('vehicle_vin', "randomvin") .attach('file', '/users/moi/desktop/unit_test_extravaganza/hardwork.jpg') .end(function(err, res) { expect(res.body.ok).to.equal(true); expect(res.body.result[0].web_link).to.exist;

Chrome Application Doesn't Use System Proxy -

a chrome packaged application under windows 10 doesn't seem using public proxy settings under internet options. i'm trying monitor application's network activity via fiddler installed on computer. every http , https requests monitored there, except ones packaged application. i'm pretty sure uses http requests behind, because generated android apk file, using arc welder. , can see http requests android application on phone. not generated packaged chrome application on windows. there can manifest file or else? thank you. chrome.sockets api not use chrome browser proxy settings. on chromeos, chrome.sockets respect system-wide vpn settings, however.

facebook - FBSDKAppInviteDialog: How to know when a friend have accepted -

using fbsdkappinvitedialog how know when friend has accepted invitation? the result in following delegate method not give information: - (void)appinvitedialog:(fbsdkappinvitedialog *)appinvitedialog didcompletewithresults:(nsdictionary *)results{ so app know when "app friends". i know sure cannot ids or information friends invited using fbsdkappinvitedialog . more information in question: app invite dialog delegate methods result parameter contains no request id and i'm pretty sure there no way friends accepted invitation directly neither. use dynamic app link end point referral code, though. can have here: https://developers.facebook.com/docs/app-invites/ios#app_links the above applies if developing non-game app. easier if doing game. can use fbsdkgamerequestdialog or invitable_friends method of graph api, if want draw custom interface that. unrelated directly question, might interesting if trying implement kind of referral system: https://dev

javascript - Chrome + JSFiddle OPTION element bug -

Image
this has me scratching head. the option text cleared using code in snippet: document.queryselector('option').textcontent = ''; <select> <option>ipso</option> </select> it works in codepen , plus works on website. however, in jsfiddle fails – but in chrome . if set textcontent prior clearing it, it works . this issue doesn't seem occur other type of element. if use innertext or innerhtml instead of textcontent , same behavior – again, in chrome. jquery's text() method gives same behavior. is chrome bug or jsfiddle bug? i don't know reason bug, try setting load type (click cog in top right corner of javascript frame) , select no wrap - in <body> . it works on chrome browser on phone (whilst fiddle didn't), , possibly explain what's gone wrong.