node -v
return any thing and wich OS please.
keggatron sends brownie points to @iamnawa :sparkles: :thumbsup: :sparkles:
:cookie: 598 | @iamnawa |http://www.freecodecamp.org/iamnawa
Hi guys.. Could someone help me with my IPAD RESPONSIVENESS for the slider TEXT.
I am trying to overide the style for div#laye_front which is in the themes CSS
I am using
@media only screen and (max-width: 1050px) and (min-width: 768px){
div#laye_front {
margin-left: 6px !important;
}}
But it wont override it
Here is the site
http://brismax.surgery/
You can inspect with Ipad view on chrome
enfold.css
file, right? I see left: 6px
rather than margin-left: 6px
custom.css
file (line 556)
!important
123xylem sends brownie points to @toianw :sparkles: :thumbsup: :sparkles:
:cookie: 517 | @toianw |http://www.freecodecamp.org/toianw
div#laye_front.ls-l
but it ain't pretty
!imporant !importanter !moreimporant !plswork
My new proposal for CSS override
arrivalTime
with an id
associated?
germangamboa95 sends brownie points to @khaduch :sparkles: :thumbsup: :sparkles:
:star2: 3889 | @khaduch |http://www.freecodecamp.org/khaduch
unorthodoxthing sends brownie points to @anthonygallina1 :sparkles: :thumbsup: :sparkles:
:star2: 5874 | @anthonygallina1 |http://www.freecodecamp.org/anthonygallina1
isaaknazar sends brownie points to @marianissimus :sparkles: :thumbsup: :sparkles:
:cookie: 490 | @marianissimus |http://www.freecodecamp.org/marianissimus
@IsaakNazar a couple of UX enhancement:
1: maybe a popup/over that explain what is/purpose of a pomodoro timer.
2: on the slider perhaps specify the measure unit: break lenght:1
. One what?
I know what you talk about since I know how a pomodoro works, but don't give it for granted.
3: update the value as I slide.
4: update the clock as I close the setting modal, I'd either have to press start or reset to see it works. At a first use I thought the setting didn't work
:+1: nice job nonetheless!
isaaknazar sends brownie points to @marmiz :sparkles: :thumbsup: :sparkles:
:star2: 1211 | @marmiz |http://www.freecodecamp.org/marmiz
computed: {
filteredCustomers() {
if(!this.veriler) return [];
if(!this.search) return this.veriler;
const nestedResults = this.veriler.map(data =>
data.datalar.filter(item =>{
if(item.soru_alt_baslik.toLowerCase().includes(this.search.toLowerCase()) || item.soru_icerik.toLowerCase().includes(this.search.toLowerCase())){
return true;
}
return item.sorular.some(titleObject =>{
var flag = true;
this.search.toLowerCase().split(' ').some(function (dat) {
console.log(dat,titleObject.title.toLowerCase().includes(dat))
if(titleObject.title.toLowerCase().includes(dat) != true){
flag = false;
}
})
return flag;
})
} )
.map(item => ({
title: item.soru_alt_baslik,
link: item.link,
parentLink: data.link,
search: true
}))
/**/
);
return nestedResults.reduce((acc, item) => acc.concat(item), []);
},
}
codernewby sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 2467 | @darrenfj |http://www.freecodecamp.org/darrenfj
depresyonx: [
{
title : '1.Giriş ',
link: 'giris',
datalar: [
{
sorular:[
{title:'Depresyon tedavisinin genel ilkeleri nelerdir? NICE bu konuda neler önerir?'},
],
link: 'soru1',
soru_alt_baslik:'Depresyon tedavisinin resmi rehberi ',
soru_icerik:' depreyon vs vs ',
},
]
},
]
I am getting a response from api as following
[
{TotalCount: 1, PickUpStatus: "Done", UserID: 100968},
{TotalCount: 1, PickUpStatus: "Pending", UserID: 100968}
]
an array of objects is there any way this can be turned (without magic) into
{
Done: 1,
Pending: 1
}
data.reduce((a, c) => { return a[c.PickUpStatus] = c.TotalCount; }, {});
thenm sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 9212 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
data.reduce((a, c) => { a[c.PickUpStatus] = c.TotalCount; return a;}, {});
data.reduce((a, c) => ({ ...a, [c.PickUpStatus]: c.TotalCount}), {});
q = $('#query').val()
didn't work
thodorisanta sends brownie points to @roxxlen :sparkles: :thumbsup: :sparkles:
:cookie: 302 | @roxxlen |http://www.freecodecamp.org/roxxlen
@media screen and (max-width: 580px) {
*{
margin: 0;
padding: 0;
}
.skin {
background: linear-gradient(90deg,#4f4f4f,#d2d2d2 0.2%, #555555 1.7%,#555555 98.3%, #9f9f9f,#5a5a5a 99.9%);
min-height: 30vh;
}
.calc_container{
min-height: 100vh;
}
.key_skin{
min-height: 50vh;
}
}
$('#search').click(function(e){
e.preventDefault();
hensn5250 sends brownie points to @lydatech :sparkles: :thumbsup: :sparkles:
:star2: 2777 | @lydatech |http://www.freecodecamp.org/lydatech
roxxlen sends brownie points to @sjames1958gm :sparkles: :thumbsup: :sparkles:
:star2: 9213 | @sjames1958gm |http://www.freecodecamp.org/sjames1958gm
aidenmead sends brownie points to @ki4jgt :sparkles: :thumbsup: :sparkles:
:cookie: 291 | @ki4jgt |http://www.freecodecamp.org/ki4jgt
twitch.tv
API? I am trying to figure out where should I put my client ID
on this request (I already have an ID, here are the docs): https://dev.twitch.tv/docs/v5/reference/streams/#get-stream-by-user
axios
to make the request, and I should do a GET
request to this URL https://api.twitch.tv/kraken/streams/<channel ID>
var img = new Image();
var images = [
(img.src = "yoga-2.jpeg"),
(img.src = "yoga-1.jpeg"),
(img.src = "pic.jpeg"),
(img.src = "mount.jpeg")
];
for (var i = 0; i < images.length; i++) {
document.body.append("<img src =" + images[i]);
}
const images = ["yoga-2.jpeg","yoga-1.jpeg", "pic.jpeg", "mount.jpeg"];
//inside for loop
let thisImg = document.createElement('img');
thisImg.src = images[i];
document.body.appendChild(thisImg);
kingwindie sends brownie points to @njm8 :sparkles: :thumbsup: :sparkles:
:cookie: 418 | @njm8 |http://www.freecodecamp.org/njm8
kpbro sends brownie points to @rdelosh :sparkles: :thumbsup: :sparkles:
:cookie: 99 | @rdelosh |http://www.freecodecamp.org/rdelosh
.do
stands for "doing something". Some Java Web Applications use that extension.
alvinw89 sends brownie points to @gulsvi :sparkles: :thumbsup: :sparkles:
:star2: 2705 | @gulsvi |http://www.freecodecamp.org/gulsvi
<div class="project">
<img src="assets/local_weather_screenshot.png">
</div>
.portfolio{
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: 15vh;
grid-auto-rows: auto;
grid-gap: 10px;
justify-items: center;
align-items: center;
padding: 20px;
max-width: 1024px;
}
.portfolio > .project{
grid-column: 1fr;
box-shadow: 0 0 7px rgba(0,0,0,.7);
background-color: #B3E5FC;
}
.project > img{
max-width: 100%;
object-fit: cover;
}
a { max-width: 100% }
img
properly or something
img { max-width: 100% }
mgrienauer sends brownie points to @mot01 :sparkles: :thumbsup: :sparkles:
:star2: 1035 | @mot01 |http://www.freecodecamp.org/mot01
/* height: 100%; */
img {
display: block; }
function smallestCommons(arr) {
// get highest, lowest and all values of array.
var highest, lowest;
if (arr[0] > arr[1]) {
highest = arr[0];
lowest = arr[1];
}else {
highest = arr[1];
lowest = arr[0];
}
arr = [];
for (var i = lowest; i <= highest; i++) {
arr.push(i);
}
// go on multiplying the largest number.
// iterate to see if all values of arr % the multipler equal to 0, if it is then
// that's the lcm .
var multiply = highest;
var counter = 0;
var lcm = 0;
while (true) {
multiply += highest
for (var i = 0; i < arr.length; i++) {
if (multiply % arr[i] === 0) {
counter++;
lcm = multiply;
}else {
counter = 0;
lcm = 0;
}
}
if (counter === arr.length) {
console.log(counter);
break;
}
if (multiply >= 200) {
break;
}
}
}
smallestCommons([1, 5]);
function smallestCommons(arr) {
// get highest, lowest and all values of array.
var highest, lowest;
if (arr[0] > arr[1]) {
highest = arr[0];
lowest = arr[1];
}else {
highest = arr[1];
lowest = arr[0];
}
arr = [];
for (var i = lowest; i <= highest; i++) {
arr.push(i);
}
// go on multiplying the largest number.
// iterate to see if all values of arr % the multipler equal to 0, if it is then
// that's the lcm .
var multiply = highest;
var counter = 0;
var lcm = 0;
while (true) {
multiply += highest
for (var i = 0; i < arr.length; i++) {
if (multiply % arr[i] === 0) {
counter++;
lcm = multiply;
}else {
counter = 0;
lcm = 0;
}
}
if (counter === arr.length) {
console.log(counter);
break;
}
if (multiply >= 200) {
break;
}
}
}
smallestCommons([1, 5]);
danjp2016 sends brownie points to @mot01 :sparkles: :thumbsup: :sparkles:
:star2: 1037 | @mot01 |http://www.freecodecamp.org/mot01
function smallestCommons(arr) {
// get highest, lowest and all values of array.
var highest, lowest;
if (arr[0] > arr[1]) {
highest = arr[0];
lowest = arr[1];
}else {
highest = arr[1];
lowest = arr[0];
}
arr = [];
for (var i = lowest; i <= highest; i++) {
arr.push(i);
}
// go on multiplying the largest number.
// iterate to see if all values of arr % the multipler equal to 0, if it is then
// that's the lcm .
var multiply = highest;
var counter = 0;
var lcm = 0;
while (true) {
multiply += highest
counter = 0;
for (var i = 0; i < arr.length; i++) {
if (multiply % arr[i] === 0) {
counter++;
lcm = multiply;
}
}
if (counter === arr.length) {
console.log(lcm);
return lcm;
}
}
}
smallestCommons([23, 18]);
sfshameem5 sends brownie points to @masd925 :sparkles: :thumbsup: :sparkles:
:star2: 4785 | @masd925 |http://www.freecodecamp.org/masd925
tamn1988 sends brownie points to @bradtaniguchi :sparkles: :thumbsup: :sparkles:
:cookie: 466 | @bradtaniguchi |http://www.freecodecamp.org/bradtaniguchi
// first loop through the array and see whether the condition passes
// if it does, then return the array item .
function findElement(arr, func) {
for (var i = 0; i < arr.length; i++) {
if (func(arr[i]) === true) {
console.log(arr[i]);
return arr[i];
}else {
console.log(undefined);
return undefined;
}
}
}
findElement([1, 2, 3, 4], function(num) {
return num % 2 === 0;
});
[1, 3, 5, 9]
locally